Problem exponentiate
User Johnnie
Submission Time 2023-06-19 21:26:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:40:27: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
40 | int answer = powl(A, B) % M;
| ~~~~~~~~~~ ^ ~
| | |
| | int
| long double