beechtree.cpp: In function 'int good(int)':
beechtree.cpp:14:22: error: 'node' was not declared in this scope
14 | ch.push_back(node);
| ^~~~
beechtree.cpp:13:13: warning: unused variable 'n' [-Wunused-variable]
13 | int n = q.front(); q.pop();
| ^
beechtree.cpp:27:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for (int i = 0; i < ch.size() && good; i++){
| ~~^~~~~~~~~~~
beechtree.cpp:29:33: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | if (count[c[ch[i]]] >= is.size() || p[ch[i]] != is[count[c[ch[i]]]]) good = false;
beechtree.cpp:31:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | if (i+1 < is.size()) is[i+1] = ch[i];
| ~~~~^~~~~~~~~~~
beechtree.cpp: In function 'std::vector<int> beechtree(int, int, std::vector<int>, std::vector<int>)':
beechtree.cpp:52:18: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | if (p[i] < g.size()) {