Problem exponentiate
User themadpotato
Submission Time 2023-02-24 17:21:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:26:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
26 | ans *= powers[index];
| ^~~
| abs
exponentiate.cpp:32:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
32 | cout << ans<< "\n";
| ^~~
| abs