Problem exponentiate
User limmingyao21
Submission Time 2023-09-09 21:47:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int qexp(int, int, int)’:
exponentiate.cpp:7:32: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
7 | long long res = qexp(B, E/2, mod);
| ^~~
| modf
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:23:3: error: expected ‘}’ at end of input
23 | }
| ^
exponentiate.cpp:14:1: note: to match this ‘{’
14 | {
| ^