seats.cpp: In function 'void segtree(int)':
seats.cpp:29:15: error: reference to 'size' is ambiguous
29 | while(size<n) size*=2;
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp:29:23: error: reference to 'size' is ambiguous
29 | while(size<n) size*=2;
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp: In function 'void sset(int, int, int)':
seats.cpp:36:26: error: reference to 'size' is ambiguous
36 | sset(i,xx,yy,0,0,size);
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp: In function 'std::vector<int> getrange(int, int)':
seats.cpp:55:33: error: reference to 'size' is ambiguous
55 | return getrange(l,r,0,0,size);
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp: In function 'void give_initial_chart(int, int, std::vector<int>, std::vector<int>)':
seats.cpp:69:16: error: reference to 'size' is ambiguous
69 | xmin[i+size-1] = xmax[i+size-1] = R[i];
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp:69:33: error: reference to 'size' is ambiguous
69 | xmin[i+size-1] = xmax[i+size-1] = R[i];
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp:71:16: error: reference to 'size' is ambiguous
71 | ymin[i+size-1] = ymax[i+size-1] = C[i];
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp:71:33: error: reference to 'size' is ambiguous
71 | ymin[i+size-1] = ymax[i+size-1] = C[i];
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp:74:17: error: reference to 'size' is ambiguous
74 | for(int x = size-2; x>=0; x--){
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from seats.h:3,
from seats.cpp:1:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
seats.cpp:27:9: note: 'int size'
27 | int size = 1, xmin[N] , xmax[N] = {0},ymin[N],ymax[N] = {0};
| ^~~~
seats.cpp: In function 'int swap_seats(int, int)':
seats.cpp:88:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
88 | while(cur<=xs.size()){
| ~~~^~~~~~~~~~~