sortbooks.cpp: In function 'void bu(int, int, int)':
sortbooks.cpp:32:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | while(!(lptr == st[2*idx + 1].v.size() && rptr == st[2*idx + 2].v.size())) {
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
sortbooks.cpp:32:50: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | while(!(lptr == st[2*idx + 1].v.size() && rptr == st[2*idx + 2].v.size())) {
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
sortbooks.cpp:33:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | if(lptr == st[2*idx+1].v.size()) {
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
sortbooks.cpp:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | else if(rptr == st[2*idx+2].v.size()) {
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
sortbooks.cpp: In function 'void solve(int)':
sortbooks.cpp:81:15: error: no matching function for call to 'std::set<int>::set(int&)'
81 | set<int> v(n);
| ^
In file included from /usr/include/c++/10/set:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from sortbooks.cpp:1:
/usr/include/c++/10/bits/stl_set.h:271:2: note: candidate: 'template<class _InputIterator> std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = _InputIterator; _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
271 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/10/bits/stl_set.h:271:2: note: template argument deduction/substitution failed:
sortbooks.cpp:81:15: note: candidate expects 3 arguments, 1 provided
81 | set<int> v(n);
| ^
In file included from /usr/include/c++/10/set:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from sortbooks.cpp:1:
/usr/include/c++/10/bits/stl_set.h:265:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::initializer_list<_Tp>, const allocator_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<int>]'
265 | set(initializer_list<value_type> __l, const allocator_type& __a)
| ^~~
/usr/include/c++/10/bits/stl_set.h:265:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/10/bits/stl_set.h:259:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::set<_Key, _Compare, _Alloc>&&, const allocator_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<int>]'
259 | set(set&& __x, const allocator_type& __a)
| ^~~
/usr/include/c++/10/bits/stl_set.h:259:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/10/bits/stl_set.h:255:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const std::set<_Key, _Compare, _Alloc>&, const allocator_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<int>]'
255 | set(const set& __x, const allocator_type& __a)
| ^~~
/usr/include/c++/10/bits/stl_set.h:255:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/10/bits/stl_set.h:251:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const allocator_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<int>]'
251 | set(const allocator_type& __a)
| ^~~
/usr/include/c++/10/bits/stl_set.h:251:33: note: no known conversion for argument 1 from 'int' to 'const allocator_type&' {aka 'const std::allocator<int>&'}
251 | set(const allocator_type& __a)
| ~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_set.h:243:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::initializer_list<_Tp>, const _Compare&, const allocator_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<int>]'
243 | set(initializer_list<value_type> __l,
| ^~~
/usr/include/c++/10/bits/stl_set.h:243:40: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
243 | set(initializer_list<value_type> __l,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_set.h:231:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(std::set<_Key, _Compare, _Alloc>&&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
231 | set(set&&) = default;
| ^~~
/usr/include/c++/10/bits/stl_set.h:231:11: note: no known conversion for argument 1 from 'int' to 'std::set<int>&&'
231 | set(set&&) = default;
| ^~~~~
/usr/include/c++/10/bits/stl_set.h:223:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const std::set<_Key, _Compare, _Alloc>&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
223 | set(const set&) = default;
| ^~~
/usr/include/c++/10/bits/stl_set.h:223:11: note: no known conversion for argument 1 from 'int' to 'const std::set<int>&'
223 | set(const set&) = default;
| ^~~~~~~~~~
/usr/include/c++/10/bits/stl_set.h:208:2: note: candidate: 'template<class _InputIterator> std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator, const _Compare&, const allocator_type&) [with _InputIterator = _InputIterator; _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
208 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/10/bits/stl_set.h:208:2: note: template argument deduction/substitution failed:
sortbooks.cpp:81:15: note: candidate expects 4 arguments, 1 provided
81 | set<int> v(n);
| ^
In file included from /usr/include/c++/10/set:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from sortbooks.cpp:1:
/usr/include/c++/10/bits/stl_set.h:191:2: note: candidate: 'template<class _InputIterator> std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
191 | set(_InputIterator __first, _InputIterator __last)
| ^~~
/usr/include/c++/10/bits/stl_set.h:191:2: note: template argument deduction/substitution failed:
sortbooks.cpp:81:15: note: candidate expects 2 arguments, 1 provided
81 | set<int> v(n);
| ^
In file included from /usr/include/c++/10/set:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from sortbooks.cpp:1:
/usr/include/c++/10/bits/stl_set.h:176:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set(const _Compare&, const allocator_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::allocator_type = std::allocator<int>]'
176 | set(const _Compare& __comp,
| ^~~
/usr/include/c++/10/bits/stl_set.h:176:27: note: no known conversion for argument 1 from 'int' to 'const std::less<int>&'
176 | set(const _Compare& __comp,
| ~~~~~~~~~~~~~~~~^~~~~~
/usr/include/c++/10/bits/stl_set.h:167:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::set() [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]'
167 | set() = default;
| ^~~
/usr/include/c++/10/bits/stl_set.h:167:7: note: candidate expects 0 arguments, 1 provided