Problem exponentiate
User kahchun
Submission Time 2023-11-04 11:23:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:14:21: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
14 | cout << (pow(A, B) % M) << endl;
| ~~~~~~~~~ ^ ~
| | |
| double int