Problem exponentiate
User estkn
Submission Time 2026-05-15 15:10:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int p(int, int, int)’:
exponentiate.cpp:8:9: error: ‘res’ was not declared in this scope
8 | res = res * a % m;
| ^~~