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:32:5: note: in expansion of macro 'ff'
32 | 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,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:36:9: note: in expansion of macro 'ff'
36 | ff(j,1,m){
| ^~
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:40:9: note: in expansion of macro 'ff'
40 | ff(j,1,m)if(val[j].xx > (n-1)/2)tr2--;
| ^~
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:47:5: note: in expansion of macro 'ff'
47 | 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:48:9: note: in expansion of macro 'ff'
48 | 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:51:9: note: in expansion of macro 'ff'
51 | 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:52:13: note: in expansion of macro 'ff'
52 | 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:57:5: note: in expansion of macro 'ff'
57 | 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:58:5: note: in expansion of macro 'ff'
58 | 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){
| ^~
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:65:9: note: in expansion of macro 'ff'
65 | ff(j,1,m)if(val[j].xx > (n-1)/2)tr2--;
| ^~
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:67:13: note: in expansion of macro 'ff'
67 | 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:68:17: note: in expansion of macro 'ff'
68 | ff(r,1,m){
| ^~