Problem exponentiate
User Martin
Submission Time 2026-09-27 12:38:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int square(int, int)’:
exponentiate.cpp:9:2: error: ‘result’ was not declared in this scope
9 | result = square(A, B/2);
| ^~~~~~
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:25:10: error: ‘A’ was not declared in this scope
25 | cin >> A >> B >> M;
| ^
exponentiate.cpp:25:15: error: ‘B’ was not declared in this scope
25 | cin >> A >> B >> M;
| ^
exponentiate.cpp:25:20: error: ‘M’ was not declared in this scope
25 | cin >> A >> B >> M;
| ^