Problem exponentiate
User xiaoqiwang04
Submission Time 2023-05-28 23:39:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int exp(int, int)’:
exponentiate.cpp:25:30: error: ‘m’ was not declared in this scope
25 | int half = exp(a, b/2) % m;
| ^
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:44:12: error: expected primary-expression before ‘)’ token
44 | if()
| ^