I'm writing a program to check whether or not an integer is a palindrome or not. (whether or not it can be read both ways, e.g 123454321 is a palindrome, 12345 is not.)
Here is the code, I keep getting an error in line 41 (call of overloaded pow(int, int) is ambiguous). Any help would be appreciated, thanks:
pow is a C function. In C++, due to the problems that occur with fraction exponents (what would pow(-3,0.5) do?), it uses class called complex (http://www.cplusplus.com/reference/std/complex/complex/). Either learn that, or make your own intPow() function.