spy.cpp: In function 'void dfs(int)':
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:19:2: note: in expansion of macro 'rep'
19 | rep(i, chiA[n].size()) dfs(chiA[n][i]);
| ^~~
spy.cpp: In function 'void dfs2(int, std::vector<int>*)':
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:25:2: note: in expansion of macro 'rep'
25 | rep(i, chiB[n].size()) dfs2(chiB[n][i], v);
| ^~~
spy.cpp: In function 'int main()':
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:33:2: note: in expansion of macro 'rep'
33 | rep(i, N){
| ^~~
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:41:2: note: in expansion of macro 'rep'
41 | rep(i, N)
| ^~~
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:43:2: note: in expansion of macro 'rep'
43 | rep(i, M){
| ^~~
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:48:2: note: in expansion of macro 'rep'
48 | rep(i, N){
| ^~~
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:53:3: note: in expansion of macro 'rep'
53 | rep(j, query[i].size()){
| ^~~
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:60:3: note: in expansion of macro 'rep'
60 | rep(j, v.size()){
| ^~~
spy.cpp:8:27: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
8 | #define rep(i, n) for(int (i)=0; (i)<(int)(n); (i)++)
| ^
spy.cpp:65:2: note: in expansion of macro 'rep'
65 | rep(i, N) cout << ans[pre[i]] << endl;
| ^~~