Its basically telling me it doesn't know wth the pow() function is. But at the top of the file, I have #include<math.h> so shouldn't that work? And right after I have the #include, I declared the function definition of bintodec, so that isn't the problem either.
int bintodec(char* array){
int result = 0;
double power = 0.0;
int i;
int temp;
double temp2;
for (i = 0; array[i] != '\0'; i++){
temp = (int)array[i];
temp2 = temp * pow(2.0, power);
result += (int)temp2;
power = power + 1;
}
return result;