messy.cpp: In function 'void add(int, int, int)':
messy.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
messy.cpp:43:5: note: in expansion of macro 'FOR'
43 | FOR(i, l, r) s[i] = '0';
| ^~~
messy.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
messy.cpp:45:5: note: in expansion of macro 'FOR'
45 | FOR(i, l, m) {
| ^~~
messy.cpp: In function 'void cal(int, int, str)':
messy.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
messy.cpp:55:9: note: in expansion of macro 'FOR'
55 | FOR(i, 0, sz(s) - 1)
| ^~~
messy.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
messy.cpp:61:5: note: in expansion of macro 'FOR'
61 | FOR(i, 0, sz(s) - 1) {
| ^~~
messy.cpp:29:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
29 | #define EACH(i, x) for (auto &(i) : (x))
| ^
messy.cpp:69:5: note: in expansion of macro 'EACH'
69 | EACH(i, a1) s1[i] = '1';
| ^~~~
messy.cpp:29:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
29 | #define EACH(i, x) for (auto &(i) : (x))
| ^
messy.cpp:70:5: note: in expansion of macro 'EACH'
70 | EACH(i, a2) s2[i] = '1';
| ^~~~
messy.cpp: In function 'std::vector<int> restore_permutation(int, int, int)':
messy.cpp:27:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
27 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
messy.cpp:82:5: note: in expansion of macro 'FOR'
82 | FOR(i, 0, n - 1) ans1[ans[i]] = i;
| ^~~