beechtree.cpp: In function 'void dfs(ll, ll)':
beechtree.cpp:45:14: error: no matching function for call to 'std::vector<std::vector<long long int> >::push_back()'
45 | res.push_back()
| ~~~~~~~~~~~~~^~
In file included from /usr/include/c++/11/vector:67,
from beechtree.h:1,
from beechtree.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<long long int>]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate expects 1 argument, 0 provided
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<long long int>]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate expects 1 argument, 0 provided
beechtree.cpp: In function 'std::vector<int> beechtree(int, int, std::vector<int>, std::vector<int>)':
beechtree.cpp:78:16: error: 'res3' was not declared in this scope; did you mean 'res2'?
78 | if(C[i]==2)res3[P[i]]=1;
| ^~~~
| res2
beechtree.cpp:83:12: error: expected unqualified-id before '.' token
83 | set<ll>.swap(s);
| ^
beechtree.cpp:92:24: error: 'o1' was not declared in this scope; did you mean 'n1'?
92 | if(!adj[y].empty())o1++;
| ^~
| n1