Problem exponentiate
User YH
Submission Time 2024-02-13 09:12:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:17:4: error: ‘total_sum’ was not declared in this scope; did you mean ‘total_value’?
17 | total_sum = ((total_sum%m) * (a%m))%m;
| ^~~~~~~~~
| total_value
exponentiate.cpp:20:11: error: ‘total_sum’ was not declared in this scope; did you mean ‘total_value’?
20 | cout << total_sum << endl;
| ^~~~~~~~~
| total_value