Problem cave
User mofumofu
Submission Time 2023-02-25 07:30:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void exploreCave(int)’:
cave.cpp:39:9: error: ‘l’ was not declared in this scope
39 | rep(j,l,r+1) if(d[j] == -1) s[j] = 0;
| ^
cave.cpp:19:30: note: in definition of macro ‘rep’
19 | #define rep(i,a,b) for(ll i=(a); i<(b); i++)
| ^
cave.cpp:39:11: error: ‘r’ was not declared in this scope
39 | rep(j,l,r+1) if(d[j] == -1) s[j] = 0;
| ^
cave.cpp:19:37: note: in definition of macro ‘rep’
19 | #define rep(i,a,b) for(ll i=(a); i<(b); i++)
| ^
cave.cpp:44:21: error: ‘l’ was not declared in this scope
44 | if(x == i) rep(j,l,r+1) if (d[j] == -1) s[j] = 1-s[j];
| ^
cave.cpp:19:30: note: in definition of macro ‘rep’
19 | #define rep(i,a,b) for(ll i=(a); i<(b); i++)
| ^
cave.cpp:44:23: error: ‘r’ was not declared in t