stones.cpp: In function 'void solve()':
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:58:2: note: in expansion of macro 'FOR'
58 | FOR(i, 0, n) {
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:63:2: note: in expansion of macro 'FOR'
63 | FOR(i, 1, rs.nd)
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:64:2: note: in expansion of macro 'FOR'
64 | FOR(j, 1, m)
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:68:3: note: in expansion of macro 'FOR'
68 | FOR(i, rs.nd + 1, n)
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:69:3: note: in expansion of macro 'FOR'
69 | FOR(j, 1, m)
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:74:3: note: in expansion of macro 'FOR'
74 | FOR(i, 1, m) {
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:76:4: note: in expansion of macro 'FOR'
76 | FOR(j, 1, need) {
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:84:2: note: in expansion of macro 'FOR'
84 | FOR(i, 1, n)
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:85:2: note: in expansion of macro 'FOR'
85 | FOR(j, 1, m)
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:89:2: note: in expansion of macro 'FOR'
89 | FOR(i, 1, n) {
| ^~~
stones.cpp:32:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
32 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
stones.cpp:90:3: note: in expansion of macro 'FOR'
90 | FOR(j, 1, m) {
| ^~~