supertrees.cpp: In function 'vi get_comp(std::vector<std::vector<int> >&, std::vector<bool>&, int)':
supertrees.cpp:33:9: error: 'com' was not declared in this scope; did you mean 'comp'?
33 | vis[com[i]]=1;
| ^~~
| comp
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:60:24: error: no matching function for call to 'std::vector<std::vector<int> >::push_back(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)'
60 | roots.pb(trees.bk.bk);
| ^
In file included from /usr/include/c++/9/vector:67,
from supertrees.h:1,
from supertrees.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<int>]'
1184 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:1184:35: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'const value_type&' {aka 'const std::vector<int>&'}
1184 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_vector.h:1200:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<int>]'
1200 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:1200:30: note: no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<std::vector<int> >::value_type&&' {aka 'std::vector<int>&&'}
1200 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
supertrees.cpp:63:13: error: cannot convert 'std::vector<int>' to 'int' in initialization
63 | for (int i:trees)
| ^~~~~
supertrees.cpp:6:29: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
6 | #define sz(x) (int)(x).size()
| ^
supertrees.cpp:65:14: note: in expansion of macro 'sz'
65 | for (int j:sz(trees[i]))
| ^~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from supertrees.cpp:2:
/usr/include/c++/9/valarray:1224:5: note: 'std::begin' declared here
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
supertrees.cpp:6:29: error: 'end' was not declared in this scope; did you mean 'std::end'?
6 | #define sz(x) (int)(x).size()
| ^
supertrees.cpp:65:14: note: in expansion of macro 'sz'
65 | for (int j:sz(trees[i]))
| ^~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from supertrees.cpp:2:
/usr/include/c++/9/valarray:1244:5: note: 'std::end' declared here
1244 | end(const valarray<_Tp>& __va)
| ^~~
supertrees.cpp:71:13: error: cannot convert 'std::vector<int>' to 'int' in initialization
71 | for (int i:roots)
| ^~~~~
supertrees.cpp:73:14: error: cannot convert 'std::vector<int>' to 'int' in initialization
73 | for (int j:roots)
| ^~~~~
supertrees.cpp:79:13: error: cannot convert 'std::vector<int>' to 'int' in initialization
79 | for (int i:roots)
| ^~~~~