Problem exponentiate
User huyleisme
Submission Time 2024-02-19 08:43:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:12:18: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
12 | mod = pow(a,b) % m;
| ~~~~~~~~ ^ ~
| | |
| double int