beechtree.cpp: In function 'bool orden(int, int)':
beechtree.cpp:6:13: error: request for member 'size' in 'sum.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
6 | if (sum[x].size() != sum[y].size())
| ^~~~
beechtree.cpp:6:30: error: request for member 'size' in 'sum.std::vector<int>::operator[](((std::vector<int>::size_type)y))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
6 | if (sum[x].size() != sum[y].size())
| ^~~~
beechtree.cpp:7:18: error: request for member 'size' in 'sum.std::vector<int>::operator[](((std::vector<int>::size_type)x))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
7 | return sum[x].size() < sum[y].size();
| ^~~~
beechtree.cpp:7:34: error: request for member 'size' in 'sum.std::vector<int>::operator[](((std::vector<int>::size_type)y))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
7 | return sum[x].size() < sum[y].size();
| ^~~~
beechtree.cpp: In function 'std::vector<int> beechtree(int, int, std::vector<int>, std::vector<int>)':
beechtree.cpp:39:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int j = 1; j < sub.size(); j++){
| ~~^~~~~~~~~~~~