Problem bunnyscore
User chenweilian
Submission Time 2024-02-11 11:51:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bunnyscore.cpp: In function ‘void init(int, int, int, int)’:
bunnyscore.cpp:57:15: error: ‘n’ was not declared in this scope
57 | FOR(i, 1, n+1) {
| ^
bunnyscore.cpp:14:41: note: in definition of macro ‘FOR’
14 | #define FOR(i, s, e) for(int i = s; i < e; i++)
| ^
bunnyscore.cpp: In function ‘int query(int, int)’:
bunnyscore.cpp:73:20: error: ‘j’ was not declared in this scope
73 | if (par[l][j] && par[l][j] <= r) {
| ^