0_0_37737851_11535.cpp: In function 'void dfs(int)':
0_0_37737851_11535.cpp:26:21: error: 'son' was not declared in this scope
if(sz[x]>sz[son[now]])son[now]=x;
^
0_0_37737851_11535.cpp: In function 'void dfs1(int, int)':
0_0_37737851_11535.cpp:30:5: error: 'id' was not declared in this scope
id[now]=++num,top[now]=t,rw[num]=now;
^
0_0_37737851_11535.cpp:30:15: error: 'num' was not declared in this scope
id[now]=++num,top[now]=t,rw[num]=now;
^
0_0_37737851_11535.cpp:30:19: error: 'top' was not declared in this scope
id[now]=++num,top[now]=t,rw[num]=now;
^
0_0_37737851_11535.cpp:30:30: error: 'rw' was not declared in this scope
id[now]=++num,top[now]=t,rw[num]=now;
^
0_0_37737851_11535.cpp:31:9: error: 'son' was not declared in this scope
if(!son[now])return ;
^
0_0_37737851_11535.cpp:32:10: error: 'son' was not declared in this scope
dfs2(son[u],t);
^
0_0_37737851_11535.cpp:32:14: error: 'u' was not declared in this scope
dfs2(son[u],t);
^
0_0_37737851_11535.cpp:32:18: error: 'dfs2' was not declared in this scope
dfs2(son[u],t);
^
0_0_37737851_11535.cpp: In function 'void op(int, std::vector<std::pair<int, int> >&)':
0_0_37737851_11535.cpp:39:11: error: 'top' was not declared in this scope
while(top[x]!=1){
^
0_0_37737851_11535.cpp:40:22: error: 'id' was not declared in this scope
s.push_back({id[top[x]],id[x]});
^
0_0_37737851_11535.cpp:40:39: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(<brace-enclosed initializer list>)'
s.push_back({id[top[x]],id[x]});
^
0_0_37737851_11535.cpp:40:39: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_37737851_11535.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}'
0_0_37737851_11535.cpp:43:20: error: 'id' was not declared in this scope
s.push_back({1,id[x]});
^
0_0_37737851_11535.cpp:43:26: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(<brace-enclosed initializer list>)'
s.push_back({1,id[x]});
^
0_0_37737851_11535.cpp:43:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_37737851_11535.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}'
0_0_37737851_11535.cpp: In function 'int main()':
0_0_37737851_11535.cpp:46:19: error: 'T' was not declared in this scope
scanf("%lld",&T);
^
0_0_37737851_11535.cpp:48:22: error: 'n' was not declared in this scope
scanf("%d %d",&n,&q);
^
0_0_37737851_11535.cpp:48:25: error: 'q' was not declared in this scope
scanf("%d %d",&n,&q);
^
0_0_37737851_11535.cpp:54:14: error: too many arguments to function 'void dfs(int)'
dfs(1,0);
^
0_0_37737851_11535.cpp:20:6: note: declared here
void dfs(int now){
^
0_0_37737851_11535.cpp:58:27: error: 'A' was not declared in this scope
scanf("%d%d%d",&A,&B,&C);
^
0_0_37737851_11535.cpp:58:30: error: 'B' was not declared in this scope
scanf("%d%d%d",&A,&B,&C);
^
0_0_37737851_11535.cpp:58:33: error: 'C' was not declared in this scope
scanf("%d%d%d",&A,&B,&C);
^
0_0_37737851_11535.cpp:61:21: error: invalid initialization of non-const reference of type 'std::vector<std::pair<int, int> >&' from an rvalue of type 'int'
op(x,1);
^
0_0_37737851_11535.cpp:38:6: note: in passing argument 2 of 'void op(int, std::vector<std::pair<int, int> >&)'
void op(int x,vector<pair<int,int>>&s){
^
|