cave.cpp: In function 'void exploreCave(int)':
cave.cpp:10:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
cave.cpp:23:2: note: in expansion of macro 'fp'
23 | fp(i,0,n)
| ^~
cave.cpp:10:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
10 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
cave.cpp:26:2: note: in expansion of macro 'fp'
26 | fp(i,0,n){
| ^~
cave.cpp:10:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
cave.cpp:27:3: note: in expansion of macro 'fp'
27 | fp(j,0,n)
| ^~
cave.cpp:10:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
cave.cpp:37:4: note: in expansion of macro 'fp'
37 | fp(j,0,n)
| ^~
cave.cpp:10:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
cave.cpp:40:4: note: in expansion of macro 'fp'
40 | fp(j,0,n){
| ^~
cave.cpp:10:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
10 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ^
cave.cpp:50:3: note: in expansion of macro 'fp'
50 | fp(j,0,n)
| ^~
cave.cpp:53:8: warning: 'g' may be used uninitialized in this function [-Wmaybe-uninitialized]
53 | a[g] = i;
| ~~~~~^~~