stones.cpp: In function 'void solve()':
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:33:5: note: in expansion of macro 'ff'
33 | ff(i,1,m)val[i] = {0,i};
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:34:5: note: in expansion of macro 'ff'
34 | ff(i,1,m)da[i] = 0;
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:38:5: note: in expansion of macro 'ff'
38 | ff(i,1,n){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:42:9: note: in expansion of macro 'ff'
42 | ff(j,1,br){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:45:9: note: in expansion of macro 'ff'
45 | ff(j,1,m){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:59:5: note: in expansion of macro 'ff'
59 | ff(i,1,n){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:60:9: note: in expansion of macro 'ff'
60 | ff(j,1,m)mat[i][j] = 0;
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:63:9: note: in expansion of macro 'ff'
63 | ff(i,1,n){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:64:13: note: in expansion of macro 'ff'
64 | ff(j,1,m)cout << '-';
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:69:5: note: in expansion of macro 'ff'
69 | ff(i,1,m)val[i] = {0,i};
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:71:5: note: in expansion of macro 'ff'
71 | ff(i,1,m)da[i] = 0;
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:72:5: note: in expansion of macro 'ff'
72 | ff(i,1,n){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:79:9: note: in expansion of macro 'ff'
79 | ff(j,1,br){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:83:9: note: in expansion of macro 'ff'
83 | ff(j,1,m){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'k' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:92:13: note: in expansion of macro 'ff'
92 | ff(k,1,n){
| ^~
stones.cpp:6:27: warning: unnecessary parentheses in declaration of 'r' [-Wparentheses]
6 | #define ff(i,a,b) for(int (i) = (a); (i) <= (b); ++(i))
| ^
stones.cpp:93:17: note: in expansion of macro 'ff'
93 | ff(r,1,m){
| ^~