books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:10:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i=0;i<=p.size();i++) qs[i] = 0;
| ~^~~~~~~~~~
books.cpp:11:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int i=0;i<p.size();i++) {
| ~^~~~~~~~~
books.cpp:14:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int i=0;i<p.size();i++) {
| ~^~~~~~~~~
books.cpp:24:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=0;i<p.size();i++) {
| ~^~~~~~~~~
books.cpp:8:26: warning: unused variable 'curcnt' [-Wunused-variable]
8 | int cur = 0, cv = 0, curcnt = 0;
| ^~~~~~