beechtree.cpp: In function 'bool orden(int, int)':
beechtree.cpp:7:17: error: request for member 'size' in 'sum.std::vector<int>::operator[](((std::vector<int>::size_type)cc.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 | if (sum[cc[x]].size() != sum[cc[y]].size())
| ^~~~
beechtree.cpp:7:38: error: request for member 'size' in 'sum.std::vector<int>::operator[](((std::vector<int>::size_type)cc.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 | if (sum[cc[x]].size() != sum[cc[y]].size())
| ^~~~
beechtree.cpp: In function 'std::vector<int> beechtree(int, int, std::vector<int>, std::vector<int>)':
beechtree.cpp:41:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int j = 1; j < sub.size(); j++){
| ~~^~~~~~~~~~~~