treearray.cpp: In function 'void dfs(int, int)':
treearray.cpp:26:31: warning: unnecessary parentheses in declaration of 'v' [-Wparentheses]
26 | #define EACH(i, x) for (auto &(i) : (x))
| ^
treearray.cpp:43:2: note: in expansion of macro 'EACH'
43 | EACH(v, adj[u]) {
| ^~~~
treearray.cpp: In function 'void build()':
treearray.cpp:24:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
treearray.cpp:49:2: note: in expansion of macro 'FOR'
49 | FOR(j, 1, 17)
| ^~~
treearray.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
treearray.cpp:50:2: note: in expansion of macro 'FOR'
50 | FOR(i, 1, n)
| ^~~
treearray.cpp: In function 'int lca(int, int)':
treearray.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
treearray.cpp:56:2: note: in expansion of macro 'FOR'
56 | FOR(i, 0, 17)
| ^~~
treearray.cpp:25:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
25 | #define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
| ^
treearray.cpp:59:2: note: in expansion of macro 'FOS'
59 | FOS(i, 17, 0)
| ^~~
treearray.cpp: In function 'int main()':
treearray.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
treearray.cpp:71:5: note: in expansion of macro 'FOR'
71 | FOR(i, 1, n - 1) {
| ^~~
treearray.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
treearray.cpp:77:5: note: in expansion of macro 'FOR'
77 | FOR(i, 1, m) cin >> a[i];
| ^~~
treearray.cpp:24:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
24 | #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
| ^
treearray.cpp:81:5: note: in expansion of macro 'FOR'
81 | FOR(i, 1, m) {
| ^~~