knapsack.cpp: In function 'int main()':
knapsack.cpp:30:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
knapsack.cpp:58:5: note: in expansion of macro 'FOR'
58 | FOR(i, 1, n) {
| ^~~
knapsack.cpp:30:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
knapsack.cpp:63:5: note: in expansion of macro 'FOR'
63 | FOR(i, 1, s) {
| ^~~
knapsack.cpp:34:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
34 | #define EACH(i, x) for (auto &(i) : (x))
| ^
knapsack.cpp:66:6: note: in expansion of macro 'EACH'
66 | EACH(j, d2[i]) {
| ^~~~
knapsack.cpp:30:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
knapsack.cpp:69:7: note: in expansion of macro 'FOR'
69 | FOR(z, 1, k) a[i][++pos] = v;
| ^~~
knapsack.cpp:30:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
knapsack.cpp:74:5: note: in expansion of macro 'FOR'
74 | FOR(i, 1, s) {
| ^~~
knapsack.cpp:30:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
knapsack.cpp:75:6: note: in expansion of macro 'FOR'
75 | FOR(j, 1, s / i)
| ^~~
knapsack.cpp:30:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
knapsack.cpp:76:6: note: in expansion of macro 'FOR'
76 | FOR(z, 0, s) {
| ^~~
knapsack.cpp:30:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
knapsack.cpp:88:6: note: in expansion of macro 'FOR'
88 | FOR(j, 1, s / i)
| ^~~
knapsack.cpp:30:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
30 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
knapsack.cpp:89:6: note: in expansion of macro 'FOR'
89 | FOR(z, 0, s)
| ^~~