seats.cpp: In member function 'int node::getmn(int, int)':
seats.cpp:23:3: warning: no return statement in function returning non-void [-Wreturn-type]
23 | }
| ^
seats.cpp: In member function 'int node::getmx(int, int)':
seats.cpp:30:3: warning: no return statement in function returning non-void [-Wreturn-type]
30 | }
| ^
seats.cpp: In member function 'void node::build()':
seats.cpp:36:20: error: no matching function for call to 'std::vector<int>::assign(int)'
36 | mn.assign(20001);
| ^
In file included from /usr/include/c++/9/vector:67,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:746:7: note: candidate: 'void std::vector<_Tp, _Alloc>::assign(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int]'
746 | assign(size_type __n, const value_type& __val)
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:746:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/9/bits/stl_vector.h:765:2: note: candidate: 'template<class _InputIterator, class> void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = int; _Alloc = std::allocator<int>]'
765 | assign(_InputIterator __first, _InputIterator __last)
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:765:2: note: template argument deduction/substitution failed:
seats.cpp:36:20: note: candidate expects 2 arguments, 1 provided
36 | mn.assign(20001);
| ^
In file included from /usr/include/c++/9/vector:67,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:791:7: note: candidate: 'void std::vector<_Tp, _Alloc>::assign(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
791 | assign(initializer_list<value_type> __l)
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:791:43: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
791 | assign(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
seats.cpp:37:20: error: no matching function for call to 'std::vector<int>::assign(int)'
37 | mn.assign(20001);
| ^
In file included from /usr/include/c++/9/vector:67,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:746:7: note: candidate: 'void std::vector<_Tp, _Alloc>::assign(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int]'
746 | assign(size_type __n, const value_type& __val)
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:746:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/9/bits/stl_vector.h:765:2: note: candidate: 'template<class _InputIterator, class> void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = int; _Alloc = std::allocator<int>]'
765 | assign(_InputIterator __first, _InputIterator __last)
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:765:2: note: template argument deduction/substitution failed:
seats.cpp:37:20: note: candidate expects 2 arguments, 1 provided
37 | mn.assign(20001);
| ^
In file included from /usr/include/c++/9/vector:67,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:791:7: note: candidate: 'void std::vector<_Tp, _Alloc>::assign(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
791 | assign(initializer_list<value_type> __l)
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:791:43: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<int>'
791 | assign(initializer_list<value_type> __l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~