Problem exponentiate
User UVRAYS
Submission Time 2024-11-07 13:28:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:12:28: error: no matching function for call to ‘pow(int&, int&, int&)’
12 | cout << pow(A, B, M) << endl;
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/iostream:38,
from exponentiate.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate: ‘double pow(double, double)’
140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate expects 2 arguments, 3 provided
In file included from exponentiate.cpp:2:
/usr/include/c++/9/cmath:415:5: note: candidate: ‘template<class _Tp, class _Up> const