Problem | exponentiate_ex |
---|---|
User | P55D2K |
Submission Time | 2023-05-07 07:49:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate_ex.cpp: In function ‘int main()’:
exponentiate_ex.cpp:18:19: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator&’
18 | if (b & 1) { res = (res * a) % m; }
| ~ ^ ~
| | |
| | int
| long double
exponentiate_ex.cpp:18:42: error: invalid operands of types ‘long double’ and ‘long double’ to binary ‘operator%’
18 | if (b & 1) { res = (res * a) % m; }
| ~~~~~~~~~ ^ ~
| | |
| | long double
| long double
exponentiate_ex.cpp:19:15: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator>>’
19 | b >>= 1; // basically b /= 2 but faster
| ~~^~~~~
exponentiate_