loop – Help with basic program in C of the introduction to programming class

The exercise asks for a program that reads a binary number in the form of a & # 39; char & # 39; of the keyboard and return to its corresponding in base 10. I have written a code but the values ​​it returns are wrong, can someone tell me the reason?

# include 
int main () {} ()
int int (int a, int x) {}
int i, one;
un = 1;
(i = 0; i <x; i ++) {}
un = a * a;
};
return one;
}


char number[1024];
scanf ("% s", number);
int i;
int n = strlen (number) - 1;
int int = 0;
(i = 0, i <n + 1, i ++) {
new = new + (number[i] * expose (2, n-i));
}

printf ("% d", new);

}

Also, I think some suggestions on how to make my code more readable do not fall foul hehehe