books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:123:9: error: 'rang' was not declared in this scope; did you mean 'rand'?
123 | rang.pb(ii(s,s));
| ^~~~
| rand
books.cpp:126:9: error: reference to 'left' is ambiguous
126 | left[i] = n;
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from books.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
books.cpp:98:4: note: 'll left [1005]'
98 | ll left[1005];
| ^~~~
books.cpp:146:13: error: 'rang' was not declared in this scope; did you mean 'rand'?
146 | rang.pb(ii(l[st],r[st]));
| ^~~~
| rand
books.cpp:153:8: error: 'rang' was not declared in this scope; did you mean 'rand'?
153 | if(rang.empty()){
| ^~~~
| rand
books.cpp:156:16: error: 'rang' was not declared in this scope; did you mean 'rand'?
156 | for(auto x:rang){
| ^~~~
| rand
books.cpp:157:9: error: reference to 'left' is ambiguous
157 | left[x.S] = min(left[x.S],x.F);
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from books.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
books.cpp:98:4: note: 'll left [1005]'
98 | ll left[1005];
| ^~~~
books.cpp:157:25: error: reference to 'left' is ambiguous
157 | left[x.S] = min(left[x.S],x.F);
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from books.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
books.cpp:98:4: note: 'll left [1005]'
98 | ll left[1005];
| ^~~~
books.cpp:158:9: error: reference to 'right' is ambiguous
158 | right[x.F] = max(right[x.F],x.S);
| ^~~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from books.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
books.cpp:99:4: note: 'll right [1005]'
99 | ll right[1005];
| ^~~~~
books.cpp:158:26: error: reference to 'right' is ambiguous
158 | right[x.F] = max(right[x.F],x.S);
| ^~~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from books.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
books.cpp:99:4: note: 'll right [1005]'
99 | ll right[1005];
| ^~~~~
books.cpp:160:7: error: request for member 'init' in 's', which is of non-class type 'int'
160 | s.init(n);
| ^~~~
books.cpp:162:7: error: request for member 'build' in 's', which is of non-class type 'int'
162 | s.build(left);
| ^~~~~
books.cpp:162:13: error: reference to 'left' is ambiguous
162 | s.build(left);
| ^~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from books.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1006:3: note: candidates are: 'std::ios_base& std::left(std::ios_base&)'
1006 | left(ios_base& __base)
| ^~~~
books.cpp:98:4: note: 'll left [1005]'
98 | ll left[1005];
| ^~~~
books.cpp:163:14: error: reference to 'right' is ambiguous
163 | s2.build(right);
| ^~~~~
In file included from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from books.cpp:1:
/usr/include/c++/10/bits/ios_base.h:1014:3: note: candidates are: 'std::ios_base& std::right(std::ios_base&)'
1014 | right(ios_base& __base)
| ^~~~~
books.cpp:99:4: note: 'll right [1005]'
99 | ll right[1005];
| ^~~~~