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

Compile Error

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