Problem | exponentiate |
---|---|
User | Kiameimon |
Submission Time | 2023-12-14 20:31:32 |
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:8:47: error: ‘i64’ was not declared in this scope
8 | return ret + c * (ret < 0) - c * (ret >= (i64)c);
| ^~~
exponentiate.cpp:8:51: error: expected ‘)’ before ‘c’
8 | return ret + c * (ret < 0) - c * (ret >= (i64)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) {
|