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 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
carnival.cpp:64:5: note: in expansion of macro 'FOR'
64 | 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:66:6: note: in expansion of macro 'FOR'
66 | 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: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:26:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
26 | #define EACH(i, x) for (auto &(i) : (x))
| ^
carnival.cpp:85:6: note: in expansion of macro 'EACH'
85 | 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:87:7: note: in expansion of macro 'EACH'
87 | 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:102:5: note: in expansion of macro 'FOR'
102 | FOR(i, 1, n) ans.pb(c[i]);
| ^~~