cave.cpp: In function 'void exploreCave(int)':
cave.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
cave.cpp:41:5: note: in expansion of macro 'FOR'
41 | FOR(i, 0, N - 1) b[i] = 1;
| ^~~
cave.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
cave.cpp:44:5: note: in expansion of macro 'FOR'
44 | FOR(i, 0, N - 1) {
| ^~~
cave.cpp:26:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
cave.cpp:45:9: note: in expansion of macro 'FOR'
45 | FOR(j, 0, N - 1) b[j] = 1;
| ^~~
cave.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
cave.cpp:50:5: note: in expansion of macro 'FOR'
50 | FOR(i, 0, N - 1) {
| ^~~
cave.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
cave.cpp:56:5: note: in expansion of macro 'FOR'
56 | FOR(i, 0, N - 1) {
| ^~~
cave.cpp:26:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
cave.cpp:61:13: note: in expansion of macro 'FOR'
61 | FOR(j, 0, N - 1)
| ^~~
cave.cpp:26:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
26 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
cave.cpp:64:13: note: in expansion of macro 'FOR'
64 | FOR(j, 0, mid)
| ^~~