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:27:2: note: in expansion of macro 'fp'
27 | 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:29:3: note: in expansion of macro 'fp'
29 | fp(j,0,s.size())
| ^~
cave.cpp:10:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ~~~~^~~~~
cave.cpp:29:3: note: in expansion of macro 'fp'
29 | fp(j,0,s.size())
| ^~
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:34:3: note: in expansion of macro 'fp'
34 | fp(j,0,s.size())
| ^~
cave.cpp:10:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | #define fp(a,i,c) for(int (a) = (i); (a) < (c); (a)++)
| ~~~~^~~~~
cave.cpp:34:3: note: in expansion of macro 'fp'
34 | fp(j,0,s.size())
| ^~
cave.cpp:37:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while(l < r && (l+r)/2 < s.size()){
| ~~~~~~~~^~~~~~~~~~
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,m)
| ^~
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:46:5: note: in expansion of macro 'fp'
46 | fp(j,0,m)
| ^~