Problem | exponentiate |
---|---|
User | zsinfo2010 |
Submission Time | 2023-11-10 13:45:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int32_t main()’:
exponentiate.cpp:13:34: error: invalid operands of types ‘__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type’ {aka ‘double’} and ‘long long int’ to binary ‘operator%’
13 | int result=pow(base, exponent) % m;
| ~~~~~~~~~~~~~~~~~~~ ^ ~
| | |
| | long long int
| __gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}