[Solved] call to ‘pow’ is ambiguous


The error means there is not a version of the function which takes the type you are passing, but instead there are more than one version taking a type that could be converted to (like float and double). The compiler doesn’t know which you want. There is not an int version of this function, but you are passing int. The error can be solved by casting the parameter to the function so it is clear (in this case, cast to float and cast the result back to int).

0

solved call to ‘pow’ is ambiguous