Problem | gotoubun |
---|---|
User | haydendoo |
Submission Time | 2022-12-23 07:44:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gotoubun.cpp: In member function ‘long long int fenwick::range_sum(long long int, long long int)’:
gotoubun.cpp:7:16: error: expected primary-expression before ‘while’
7 | #define sub(x) while(x>=mod) x-=mod
| ^~~~~
gotoubun.cpp:19:9: note: in expansion of macro ‘sub’
19 | return sub(sum(r) - sum(l-1) + mod);
| ^~~
gotoubun.cpp:19:8: error: expected ‘;’ before ‘while’
19 | return sub(sum(r) - sum(l-1) + mod);
| ^
| ;
gotoubun.cpp:7:33: error: lvalue required as left operand of assignment
7 | #define sub(x) while(x>=mod) x-=mod
| ^~~
gotoubun.cpp:19:9: note: in expansion of macro ‘sub’
19 | return sub(sum(r) - sum(l-1) + mod);
| ^~~