train.cpp:18:6: error: redefinition of 'void dfs(int, int)'
18 | void dfs(int v,int num){
| ^~~
train.cpp:10:6: note: 'void dfs(int, int)' previously defined here
10 | void dfs(int v,int num){
| ^~~
train.cpp: In function 'void dfs(int, int)':
train.cpp:22:4: error: 'dfs2' was not declared in this scope; did you mean 'dfs'?
22 | dfs2(u,num);
| ^~~~
| dfs
train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:36:3: error: 'dfs2' was not declared in this scope; did you mean 'dfs'?
36 | dfs2(i,i);
| ^~~~
| dfs