0_0_22312043_3496.cpp:23:1: error: 'vector' does not name a type
vector<int>vec[MAXN];
^
0_0_22312043_3496.cpp:26:1: error: 'map' does not name a type
map<int,int>mp;
^
0_0_22312043_3496.cpp: In function 'void dfs(int)':
0_0_22312043_3496.cpp:74:14: error: 'vec' was not declared in this scope
int sz = vec[u].size();
^
0_0_22312043_3496.cpp:78:17: error: 'mp' was not declared in this scope
int X = mp[Query[id].X];
^
0_0_22312043_3496.cpp:92:10: error: 'mp' was not declared in this scope
add1(mp[w[u]],1);
^
0_0_22312043_3496.cpp: In function 'int main()':
0_0_22312043_3496.cpp:106:17: error: 'T' was not declared in this scope
scanf("%d",&T);
^
0_0_22312043_3496.cpp:114:13: error: 'vec' was not declared in this scope
vec[i].clear();
^
0_0_22312043_3496.cpp:138:13: error: 'vec' was not declared in this scope
vec[u].push_back(i);
^
0_0_22312043_3496.cpp:146:19: error: 'sort' was not declared in this scope
sort(a,a+t);
^
0_0_22312043_3496.cpp:146:19: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22312043_3496.cpp:4:
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_22312043_3496.cpp:147:25: error: 'unique' was not declared in this scope
t = unique(a,a+t)-a;
^
0_0_22312043_3496.cpp:147:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_22312043_3496.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1022:5: note: 'std::unique'
unique(_ForwardIterator __first, _ForwardIterator __last,
^
0_0_22312043_3496.cpp:148:9: error: 'mp' was not declared in this scope
mp.clear();
^
|