books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(i,a,n) for(int i = a; i<n; i++)
......
10 | rep(i,0,p.size()){
| ~~~~~~~~~~~~
books.cpp:10:2: note: in expansion of macro 'rep'
10 | rep(i,0,p.size()){
| ^~~
books.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(i,a,n) for(int i = a; i<n; i++)
......
13 | rep(i,1,sm.size())sm[i] += sm[i-1];
| ~~~~~~~~~~~~~
books.cpp:13:2: note: in expansion of macro 'rep'
13 | rep(i,1,sm.size())sm[i] += sm[i-1];
| ^~~