Problem | exponentiate |
---|---|
User | Kiameimon |
Submission Time | 2023-12-14 20:31:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘long long int modmul(long long int, long long int, long long int)’:
exponentiate.cpp:3:12: error: expected primary-expression before ‘long’
3 | #define ll long long
| ^~~~
exponentiate.cpp:7:26: note: in expansion of macro ‘ll’
7 | ll ret = a * b - c * ll(ld(a) * ld(b) / ld(c));
| ^~
exponentiate.cpp: At global scope:
exponentiate.cpp:10:1: error: ‘u64’ does not name a type
10 | u64 modex(ll b, ll e, ll m) {
| ^~~
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:22:11: error: ‘modex’ was not declared in this scope
22 | cout << modex(a%m, b, m) << "\n";
| ^~~~~