paint.cpp: In function 'std::string solve_puzzle(std::string, std::vector<int>)':
paint.cpp:29:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
29 | #define EACH(i, x) for (auto &(i) : (x))
| ^
paint.cpp:51:5: note: in expansion of macro 'EACH'
51 | EACH(i, c) c1.pb(i);
| ^~~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:56:5: note: in expansion of macro 'FOR'
56 | FOR(i, 1, n) f[i] = f[i - 1] + (s[i] == '_'? 1 : 0);
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:58:5: note: in expansion of macro 'FOR'
58 | FOR(i, 1, n)
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:59:5: note: in expansion of macro 'FOR'
59 | FOR(j, 0, k) {
| ^~~
paint.cpp:28:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
28 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
paint.cpp:81:5: note: in expansion of macro 'FOS'
81 | FOS(i, n, 1)
| ^~~
paint.cpp:28:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
28 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
paint.cpp:82:5: note: in expansion of macro 'FOS'
82 | FOS(j, k + 1, 1) {
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:103:5: note: in expansion of macro 'FOR'
103 | FOR(i, 1, n) {
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:110:9: note: in expansion of macro 'FOR'
110 | FOR(j, 0, k) ok = ok || (d[i - 1][j] && d1[i + 1][j + 1]);
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:113:5: note: in expansion of macro 'FOR'
113 | FOR(i, 1, k)
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:114:5: note: in expansion of macro 'FOR'
114 | FOR(j, 1, n - c[i] + 1) {
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:123:5: note: in expansion of macro 'FOR'
123 | FOR(i, 1, n) a[i] += a[i - 1];
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:124:5: note: in expansion of macro 'FOR'
124 | FOR(i, 1, n) {
| ^~~
paint.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
paint.cpp:129:5: note: in expansion of macro 'FOR'
129 | FOR(i, 1, n)
| ^~~