Problem exponentiate
User isaackhong
Submission Time 2023-01-11 16:57:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int power(int, int)’:
exponentiate.cpp:12:9: error: ‘result’ was not declared in this scope
12 | result *= base;
| ^~~~~~
exponentiate.cpp:16:12: error: ‘result’ was not declared in this scope
16 | return result;
| ^~~~~~