0_0_36489751_32588.cpp:7:1: error: 'vector' does not name a type
vector<int>v[N];
^
0_0_36489751_32588.cpp:10:1: error: 'vector' does not name a type
vector<int>id[3],col[3][3];
^
0_0_36489751_32588.cpp: In function 'void dfs(int, int)':
0_0_36489751_32588.cpp:19:3: error: 'id' was not declared in this scope
id[i].pb(val[i][u]);
^
0_0_36489751_32588.cpp:20:3: error: 'col' was not declared in this scope
col[i][c^p[i][u]].pb(val[i][u]);
^
0_0_36489751_32588.cpp:23:13: error: 'v' was not declared in this scope
for(auto x:v[u]) dfs(x,c^1);
^
0_0_36489751_32588.cpp: In function 'int main()':
0_0_36489751_32588.cpp:35:25: error: 'v' was not declared in this scope
for(int i=1;i<=n;i++) v[i].clear(),st[i]=-1;
^
0_0_36489751_32588.cpp:38:4: error: 'v' was not declared in this scope
v[a].pb(b); v[b].pb(a);
^
0_0_36489751_32588.cpp:50:6: error: 'id' was not declared in this scope
id[j].clear();
^
0_0_36489751_32588.cpp:51:6: error: 'col' was not declared in this scope
col[j][0].clear();
^
0_0_36489751_32588.cpp:57:11: error: 'id' was not declared in this scope
sort(id[j].begin(),id[j].end());
^
0_0_36489751_32588.cpp:57:36: error: 'sort' was not declared in this scope
sort(id[j].begin(),id[j].end());
^
0_0_36489751_32588.cpp:57:36: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_36489751_32588.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
0_0_36489751_32588.cpp:58:11: error: 'col' was not declared in this scope
sort(col[j][0].begin(),col[j][0].end());
^
0_0_36489751_32588.cpp:61:8: error: 'id' was not declared in this scope
if(id[1]!=id[2]) ans=0;
^
0_0_36489751_32588.cpp:62:15: error: 'col' was not declared in this scope
if(flag&&(col[1][0]!=col[2][0]||col[1][1]!=col[2][1])) ans=0;
^
0_0_36489751_32588.cpp:68:25: error: 'v' was not declared in this scope
for(int i=1;i<=n;i++) v[i].clear();
^
|