Hey everyone, I am trying to convert a binary number to decimal form but I keep getting an error when trying to use the pow function in cmath. The compiler is telling me that is an ambiguous call to an overloaded function. Can anyone tell me what I'm doing wrong?
No, the problem is because pow(int, int) is not defined, so ints could either be converted to float or double. To fix the problem, cast one of the arguments to a float or a double.