| Problem | exponentiate_ex |
|---|---|
| User | chickengoat |
| Submission Time | 2026-11-16 10:10:43 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
exponentiate_ex.cpp: In function ‘ll exp(ll, ll, ll)’:
exponentiate_ex.cpp:12:21: error: no matching function for call to ‘exp(ll&, ll)’
12 | return ((exp(a,b/2)%m)*(exp(a,b/2)%m)%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_ex.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_ex.cpp:4:4: note: candidate: ‘ll exp(ll, ll, ll)’
4 | ll exp(ll a,ll b,