Problem exponentiate
User PerihelionfromAphelion
Submission Time 2026-06-17 11:45:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘long long int modPow(long long int, long long int, long long int)’:
exponentiate.cpp:8:3: error: ‘result’ was not declared in this scope
8 | result = result * A % M;
| ^~~~~~
exponentiate.cpp:13:9: error: ‘result’ was not declared in this scope
13 | return result;
| ^~~~~~