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

Compile Error

exponentiate.cpp: In function ‘int power(int, int)’:
exponentiate.cpp:7:9: error: declaration of ‘int exponent’ shadows a parameter
7 | int exponent;
| ^~~~~~~~
exponentiate.cpp:8:11: error: declaration of ‘float base’ shadows a parameter
8 | float base, result = 1;
| ^~~~