0_0_37998431_4514.cpp:4:1: error: 'vector' does not name a type
vector<int> vec[N];
^
0_0_37998431_4514.cpp: In function 'void init(int)':
0_0_37998431_4514.cpp:24:22: error: 'memset' was not declared in this scope
memset(f,0,sizeof(f));
^
0_0_37998431_4514.cpp: In function 'int getlca(int, int)':
0_0_37998431_4514.cpp:48:24: error: 'swap' was not declared in this scope
if(d[x]>d[y]) swap(x,y);
^
0_0_37998431_4514.cpp: In function 'void dp(int, int)':
0_0_37998431_4514.cpp:62:13: error: 'vec' was not declared in this scope
for(auto y:vec[x])
^
0_0_37998431_4514.cpp: In function 'void clear(int)':
0_0_37998431_4514.cpp:77:13: error: 'vec' was not declared in this scope
for(auto y:vec[x])
^
0_0_37998431_4514.cpp: In function 'void build(int)':
0_0_37998431_4514.cpp:85:22: error: 'sort' was not declared in this scope
sort(a+1,a+cnt+1,cmp);
^
0_0_37998431_4514.cpp:86:24: error: 'unique' was not declared in this scope
cnt=unique(a+1,a+cnt+1)-(a+1);
^
0_0_37998431_4514.cpp:88:2: error: 'vec' was not declared in this scope
vec[1].clear();
^
0_0_37998431_4514.cpp: In function 'int main()':
0_0_37998431_4514.cpp:130:2: error: 'cin' was not declared in this scope
cin>>T;
^
0_0_37998431_4514.cpp:156:4: error: 'cout' was not declared in this scope
cout<<ans<<endl;
^
0_0_37998431_4514.cpp:156:15: error: 'endl' was not declared in this scope
cout<<ans<<endl;
^
|