Problem exponentiate
User zsinfo2010
Submission Time 2025-07-18 13:50:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int32_t main()’:
exponentiate.cpp:13:29: error: invalid operands of types ‘double’ and ‘long double’ to binary ‘operator%’
13 | int result = intermediate % m;
| ~~~~~~~~~~~~ ^ ~
| | |
| double long double