cave.cpp: In function 'void {anonymous}::turn(int, int)':
cave.cpp:5:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
5 | #define repi(i, a, b) for(int (i)=(a); (i)<(b); (i)++)
| ^
cave.cpp:14:9: note: in expansion of macro 'repi'
14 | repi(i, l, r){
| ^~~~
cave.cpp: In function 'void exploreCave(int)':
cave.cpp:4:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
4 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
cave.cpp:21:5: note: in expansion of macro 'rep'
21 | rep(i, N){
| ^~~
cave.cpp:4:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
4 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
cave.cpp:26:5: note: in expansion of macro 'rep'
26 | rep(i, N - 1){
| ^~~
cave.cpp:4:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
4 | #define rep(i, n) for(int (i)=0; (i)<(n); (i)++)
| ^
cave.cpp:44:5: note: in expansion of macro 'rep'
44 | rep(i, N) if(D[i] == -1){
| ^~~