Problem | eescapism |
---|---|
User | 2110100 |
Submission Time | 2023-06-29 12:17:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eescapism.cpp: In function ‘int main()’:
eescapism.cpp:3:23: error: expected ‘)’ before ‘;’ token
3 | #define mod 1000000007;
| ^
eescapism.cpp:26:20: note: in expansion of macro ‘mod’
26 | inv = power(2, mod - 2);
| ^~~
eescapism.cpp:26:16: note: to match this ‘(’
26 | inv = power(2, mod - 2);
| ^
eescapism.cpp:26:27: error: expected ‘;’ before ‘)’ token
26 | inv = power(2, mod - 2);
| ^
| ;
eescapism.cpp:3:23: error: expected ‘)’ before ‘;’ token
3 | #define mod 1000000007;
| ^
eescapism.cpp:30:33: note: in expansion of macro ‘mod’
30 | res += ((x * (x + 1)) % mod) * inv;
| ^~~
eescapism.cpp:30:16: note: to match this ‘(’
30 | res += ((x * (x + 1)) % mod) * inv;