Problem exponentiate
User Kishan
Submission Time 2023-06-19 10:07:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘long long int exp(long long int, long long int, long long int)’:
exponentiate.cpp:8:29: error: no matching function for call to ‘exp(long long int&, long long int)’
8 | long long x = exp(a, b/2) % m;
| ^
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/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from exponentiate.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:95:1: note: candidate: ‘double exp(double)’
95 | __MATHCALL_VEC (exp,, (_Mdouble_ __x));
| ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:95:1: note: candidate expects 1 argument, 2 provided
exponentiate.cpp:5:11: note: candid