Problem | exponentiate |
---|---|
User | Blender |
Submission Time | 2024-03-04 15:35:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:29:29: error: invalid operands of types ‘__gnu_cxx::__promote_2<unsigned int, unsigned int, double, double>::__type’ {aka ‘double’} and ‘unsigned int’ to binary ‘operator%’
29 | cout << pow( A, B ) % M << '\n';
| ~~~~~~~~~~~ ^ ~
| | |
| | unsigned int
| __gnu_cxx::__promote_2<unsigned int, unsigned int, double, double>::__type {aka double}