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:34:9: note: in expansion of macro 'ff'
34 | ff(i,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:40:9: note: in expansion of macro 'ff'
40 | ff(i,1,n)cout << "+\n";
| ^~
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:5: note: in expansion of macro 'ff'
51 | 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:52:5: note: in expansion of macro 'ff'
52 | 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:57:5: note: in expansion of macro 'ff'
57 | 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:61:9: note: in expansion of macro 'ff'
61 | 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:64:9: note: in expansion of macro 'ff'
64 | 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:83:9: note: in expansion of macro 'ff'
83 | 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:84:13: note: in expansion of macro 'ff'
84 | 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:94:5: note: in expansion of macro 'ff'
94 | 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:95:9: note: in expansion of macro 'ff'
95 | 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:97:5: note: in expansion of macro 'ff'
97 | 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:99:5: note: in expansion of macro 'ff'
99 | 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:100:5: note: in expansion of macro 'ff'
100 | 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:107:9: note: in expansion of macro 'ff'
107 | 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:111:9: note: in expansion of macro 'ff'
111 | 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:123:17: note: in expansion of macro 'ff'
123 | 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:124:21: note: in expansion of macro 'ff'
124 | ff(r,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:132:17: note: in expansion of macro 'ff'
132 | 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:133:21: note: in expansion of macro 'ff'
133 | ff(r,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:139:13: note: in expansion of macro 'ff'
139 | 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:140:17: note: in expansion of macro 'ff'
140 | ff(r,1,m){
| ^~