books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:46:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<long long int, long long int>, std::vector<long long int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | for(int i=0; i<v.size(); i++){
| ~^~~~~~~~~
books.cpp:50:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(int t=0; t<v[i].T.size(); t++)x=min(x, abs(s-v[i].T[t]));
| ~^~~~~~~~~~~~~~
books.cpp: At global scope:
books.cpp:61:5: error: expected unqualified-id before 'if'
61 | if(x==n)return r;
| ^~
books.cpp:62:2: error: expected unqualified-id before 'return'
62 | return r+2*x;
| ^~~~~~
books.cpp:63:1: error: expected declaration before '}' token
63 | }
| ^
books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:15:44: warning: control reaches end of non-void function [-Wreturn-type]
15 | vector<pair<pair<ll, ll>, vector<ll>>> v;
| ^