books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:5:9: error: 'solve' was not declared in this scope
5 | return solve(p,s,false)+solve
| ^~~~~
books.cpp:5:31: error: expected ';' before 'int'
5 | return solve(p,s,false)+solve
| ^
| ;
6 | int n = p.size();
| ~~~
books.cpp:25:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | while (indi<hehe.size() && hehe[indi].first<=i){
| ~~~~^~~~~~~~~~~~
books.cpp:29:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | if (indi!=hehe.size() && crr==0){
| ~~~~^~~~~~~~~~~~~
books.cpp:39:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | while (indi<hehe.size() && hehe[indi].first>=i){
| ~~~~^~~~~~~~~~~~
books.cpp:43:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | if (indi!=hehe.size() && crr==0){
| ~~~~^~~~~~~~~~~~~