Problem | exponentiate_ex |
---|---|
User | Kiameimon |
Submission Time | 2023-12-14 20:21:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate_ex.cpp: In function ‘int64_t modex(int64_t, int64_t, int64_t)’:
exponentiate_ex.cpp:7:7: error: ‘e’ was not declared in this scope
7 | if (e == 0) return 1 % m;
| ^
exponentiate_ex.cpp:7:26: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
7 | if (e == 0) return 1 % m;
| ^
| tm
exponentiate_ex.cpp:8:7: error: ‘e’ was not declared in this scope
8 | if (e & 1) return b * modex(b * b % m, e / 2, m) % m;
| ^
exponentiate_ex.cpp:8:21: error: ‘b’ was not declared in this scope
8 | if (e & 1) return b * modex(b * b % m, e / 2, m) % m;
| ^
exponentiate_ex.cpp:8:39: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
8 | if (e & 1) return b * modex(b * b % m, e / 2, m) % m;
| ^
| tm<