Problem | exponentiate |
---|---|
User | NoynYT |
Submission Time | 2025-02-13 16:39:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:10:20: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’
10 | cout << pow(x, e)%m << "\n";
| ~~~~~~~~~^~
| | |
| | int
| __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}