Problem exponentiate
User Kannan
Submission Time 2023-12-20 14:48:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:12:10: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator%’
12 | exp[i] %= z;
| ~~~~~~~^~~~
exponentiate.cpp:12:13: error: in evaluation of ‘operator%=(int, double)’
12 | exp[i] %= z;
| ^