0_0_29969513_23254.cpp:23:7: error: expected unqualified-id before 'int'
part(int from,int to)
^
0_0_29969513_23254.cpp:23:7: error: expected ')' before 'int'
0_0_29969513_23254.cpp: In function 'void dfs1(int, int, int, int)':
0_0_29969513_23254.cpp:38:6: error: 'i' was not declared in this scope
for(i=0;i<v[pos].size();i++)
^
0_0_29969513_23254.cpp:38:19: error: '__gnu_cxx::__alloc_traits<std::allocator<part> >::value_type' has no member named 'size'
for(i=0;i<v[pos].size();i++)
^
0_0_29969513_23254.cpp: In function 'int getlca(int, int)':
0_0_29969513_23254.cpp:54:5: error: 'f' was not declared in this scope
x=f[x][i];
^
0_0_29969513_23254.cpp:62:6: error: 'f' was not declared in this scope
if(f[x][i]!=f[y][i])
^
0_0_29969513_23254.cpp: In function 'int dfs2(int, int)':
0_0_29969513_23254.cpp:72:23: error: '__gnu_cxx::__alloc_traits<std::allocator<part> >::value_type' has no member named 'size'
for(int i=0;i<v[pos].size();i++)
^
0_0_29969513_23254.cpp:74:16: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<part> >::value_type {aka part}' and 'int')
int to=v[pos][i];
^
0_0_29969513_23254.cpp: In function 'int main()':
0_0_29969513_23254.cpp:91:23: error: 'l' was not declared in this scope
scanf("%d %d",&n,&m);l
^
0_0_29969513_23254.cpp:92:20: error: expected ';' before ')' token
for(i=1;i<=n-1;i++)
^
|