Problem | exponentiate |
---|---|
User | hwy |
Submission Time | 2023-06-07 19:27:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘ll power(ll, ll)’:
exponentiate.cpp:11:26: error: invalid operands of types ‘__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type’ {aka ‘double’} and ‘ll’ {aka ‘long long int’} to binary ‘operator%’
11 | ll ans = pow(A, B/2) % M;
| ~~~~~~~~~~~ ^ ~
| | |
| | ll {aka long long int}
| __gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}