Problem | exponentiate |
---|---|
User | Logout |
Submission Time | 2023-11-11 15:08:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:10:21: error: invalid operands of types ‘__gnu_cxx::__promote_2<long int, long int, double, double>::__type’ {aka ‘double’} and ‘long int’ to binary ‘operator%’
10 | cout << pow(a, b) % m;
| ~~~~~~~~~ ^ ~
| | |
| | long int
| __gnu_cxx::__promote_2<long int, long int, double, double>::__type {aka double}