split.cpp: In function 'int dfs(int)':
split.cpp:27:11: error: 'f' was not declared in this scope
27 | if(sz >= f[0].first && n - sz >= f[1].first){
| ^
split.cpp:27:25: error: 'n' was not declared in this scope
27 | if(sz >= f[0].first && n - sz >= f[1].first){
| ^
split.cpp: In function 'std::vector<int> find_split(int, int, int, int, std::vector<int>, std::vector<int>)':
split.cpp:73:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | for(int i = 0;i<p.size();i++){
| ~^~~~~~~~~