park.cpp: In function 'void solve(std::vector<int>)':
park.cpp:96:14: error: 'subs' was not declared in this scope; did you mean 'sub'?
96 | for (auto i:subs) {
| ^~~~
| sub
In file included from /usr/include/c++/10/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:45,
from /usr/include/c++/10/ext/pb_ds/detail/container_base_dispatch.hpp:90,
from /usr/include/c++/10/ext/pb_ds/assoc_container.hpp:48,
from park.cpp:11:
park.cpp:106:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
106 | assert(siz == v.size() - 1);
| ~~~~^~~~~~~~~~~~~~~
park.cpp: In function 'void group(std::vector<int>, std::vector<int>, int, std::vector<std::vector<int> >&)':
park.cpp:116:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
116 | for (int i = 0;i < root.size();i++) {
| ~~^~~~~~~~~~~~~
park.cpp:117:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
117 | if (i < (root.size() / 2)) ar.push_back(root[i]);
| ~~^~~~~~~~~~~~~~~~~~~
park.cpp:129:20: error: too few arguments to function 'void group(std::vector<int>, std::vector<int>, int, std::vector<std::vector<int> >&)'
129 | group(ar, an, cent), group(br, bn, cent);
| ^
park.cpp:108:6: note: declared here
108 | void group(vector<int> root, vector<int> nom, int cent, vector<vector<int> > &rec) {
| ^~~~~
park.cpp:129:41: error: too few arguments to function 'void group(std::vector<int>, std::vector<int>, int, std::vector<std::vector<int> >&)'
129 | group(ar, an, cent), group(br, bn, cent);
| ^
park.cpp:108:6: note: declared here
108 | void group(vector<int> root, vector<int> nom, int cent, vector<vector<int> > &rec) {
| ^~~~~