Problem exponentiate
User chickennn
Submission Time 2026-04-21 18:26:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:20:13: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
20 | cout << x % M << endl;
| ~ ^ ~
| | |
| | int
| double