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:24:2: note: in expansion of macro 'fp'
24 | 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:29:2: note: in expansion of macro 'fp'
29 | 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:30:3: note: in expansion of macro 'fp'
30 | 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:39:4: note: in expansion of macro 'fp'
39 | fp(j,0,n){
| ^~
cave.cpp:22:12: warning: variable 'ans' set but not used [-Wunused-but-set-variable]
22 | int v[n], ans[n], a[n];
| ^~~