merchant.cpp: In function 'bool check(int)':
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:42:2: note: in expansion of macro 'FOR'
42 | FOR(i, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:43:2: note: in expansion of macro 'FOR'
43 | FOR(j, 1, n) {
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:54:2: note: in expansion of macro 'FOR'
54 | FOR(z, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:55:2: note: in expansion of macro 'FOR'
55 | FOR(i, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:56:2: note: in expansion of macro 'FOR'
56 | FOR(j, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:58:2: note: in expansion of macro 'FOR'
58 | FOR(i, 1, n)
| ^~~
merchant.cpp: In function 'int main()':
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:68:5: note: in expansion of macro 'FOR'
68 | FOR(i, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:69:5: note: in expansion of macro 'FOR'
69 | FOR(j, 1, k)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:71:5: note: in expansion of macro 'FOR'
71 | FOR(i, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:72:5: note: in expansion of macro 'FOR'
72 | FOR(j, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:74:5: note: in expansion of macro 'FOR'
74 | FOR(i, 1, m) {
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:79:5: note: in expansion of macro 'FOR'
79 | FOR(z, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:80:5: note: in expansion of macro 'FOR'
80 | FOR(i, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:81:5: note: in expansion of macro 'FOR'
81 | FOR(j, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:83:5: note: in expansion of macro 'FOR'
83 | FOR(i, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:84:5: note: in expansion of macro 'FOR'
84 | FOR(j, 1, n)
| ^~~
merchant.cpp:24:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
merchant.cpp:85:2: note: in expansion of macro 'FOR'
85 | FOR(z, 1, k)
| ^~~