Problem exponentiate
User matt
Submission Time 2024-01-10 13:04:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘long long int power(long long int, long long int)’:
exponentiate.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i=0;i<b;i++){
| ^
exponentiate.cpp:9:12: error: expected ‘;’ before ‘}’ token
9 | r = r * a
| ^
| ;
10 | }
| ~