Quit being lazy. If you can't get the library function to work, write your own pow() function. Programming is about problem solving. Ideally, we want to avoid duplication but, the function isn't that hard to write.
Code:
int pow ( int base, int exp ) {
if ( exp <= 0 ) {
//not mathematically correct but negative exponents won't return an int anyway
return 1;
}
else {
int i;
int result = 1;
for( i = 0; i < exp; i++ ) {
result = result * base;
}
return result;
}