0_0_38632327_18494.cpp:24:1: error: 'vector' does not name a type; did you mean 'perror'?
vector<int> G[N];
^~~~~~
perror
0_0_38632327_18494.cpp: In function 'void dfs1(const int&, const int&)':
0_0_38632327_18494.cpp:34:15: error: 'G' was not declared in this scope
for(auto v : G[u]) if(v != f) {
^
0_0_38632327_18494.cpp: In function 'void dfs2(const int&, const int&)':
0_0_38632327_18494.cpp:46:15: error: 'G' was not declared in this scope
for(auto v : G[u]) if(v != fa[u] && v != son[u]) dfs2(v, v);
^
0_0_38632327_18494.cpp: In function 'int main()':
0_0_38632327_18494.cpp:89:29: error: 'G' was not declared in this scope
for(int i = 1;i <= n;i++) G[i].clear();
^
0_0_38632327_18494.cpp:92:4: error: 'G' was not declared in this scope
G[u].push_back(v);
^
|