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:45:3: note: in expansion of macro 'EACH'
45 | 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:53:3: note: in expansion of macro 'EACH'
53 | EACH(i, a) cout << i << ' ';
| ^~~~
carnival.cpp: In function 'int main()':
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:65:2: note: in expansion of macro 'FOR'
65 | FOR(j, 1, n) a1.pb(j);
| ^~~
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)
| ^~~
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:76:5: note: in expansion of macro 'FOR'
76 | FOR(i, 0, sz(a) - 1) {
| ^~~
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:85:6: note: in expansion of macro 'FOR'
85 | FOR(j, 0, i - 1) a1.pb(a[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:88:6: note: in expansion of macro 'FOR'
88 | FOR(j, 0, i) a1.pb(a[j]);
| ^~~
carnival.cpp:26:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
26 | #define EACH(i, x) for (auto &(i) : (x))
| ^
carnival.cpp:97:6: note: in expansion of macro 'EACH'
97 | 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:99:7: note: in expansion of macro 'EACH'
99 | 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:114:5: note: in expansion of macro 'FOR'
114 | FOR(i, 1, n) ans.pb(c[i]);
| ^~~