carnival.cpp: In function 'int number_of_color(vi)':
carnival.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define EACH(i, x) for (auto &(i) : (x))
| ^
carnival.cpp:47:3: note: in expansion of macro 'EACH'
47 | EACH(i, a) cout << i << ' ';
| ^~~~
carnival.cpp: In function 'void check_answer(vi)':
carnival.cpp:26:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
26 | #define EACH(i, x) for (auto &(i) : (x))
| ^
carnival.cpp:56:3: note: in expansion of macro 'EACH'
56 | EACH(i, a) cout << i << ' ';
| ^~~~
carnival.cpp: In function 'int main()':
carnival.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
carnival.cpp:67:5: note: in expansion of macro 'FOR'
67 | FOR(i, 1, n) {
| ^~~
carnival.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
carnival.cpp:69:6: note: in expansion of macro 'FOR'
69 | FOR(j, 1, n) a.pb(j);
| ^~~
carnival.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
carnival.cpp:72:6: note: in expansion of macro 'FOR'
72 | FOR(j, 1, n)
| ^~~
carnival.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
carnival.cpp:79:5: note: in expansion of macro 'FOR'
79 | FOR(i, 0, sz(a) - 1) {
| ^~~
carnival.cpp:26:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
26 | #define EACH(i, x) for (auto &(i) : (x))
| ^
carnival.cpp:88:6: note: in expansion of macro 'EACH'
88 | EACH(j, cc) {
| ^~~~
carnival.cpp:26:31: warning: unnecessary parentheses in declaration of 'z' [-Wparentheses]
26 | #define EACH(i, x) for (auto &(i) : (x))
| ^
carnival.cpp:90:7: note: in expansion of macro 'EACH'
90 | EACH(z, d[j]) a1.pb(z);
| ^~~~
carnival.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
carnival.cpp:105:5: note: in expansion of macro 'FOR'
105 | FOR(i, 1, n) ans.pb(c[i]);
| ^~~