books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:127:9: error: reference to 'left' is ambiguous
127 | 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:158:9: error: reference to 'left' is ambiguous
158 | 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:25: error: reference to 'left' is ambiguous
158 | 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:159:9: error: reference to 'right' is ambiguous
159 | 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:159:26: error: reference to 'right' is ambiguous
159 | 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:161:7: error: request for member 'init' in 's', which is of non-class type 'int'
161 | s.init(n);
| ^~~~
books.cpp:163:7: error: request for member 'build' in 's', which is of non-class type 'int'
163 | s.build(left);
| ^~~~~
books.cpp:163:13: error: reference to 'left' is ambiguous
163 | 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:164:14: error: reference to 'right' is ambiguous
164 | 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];
| ^~~~~