0_0_39346661_9542.cpp: In function 'void newnode(int&, int, int)':
0_0_39346661_9542.cpp:20:9: error: reference to 'size' is ambiguous
20 | size[u]=1;
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:53,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_39346661_9542.cpp:4:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39346661_9542.cpp:13:26: note: 'int size [100010]'
13 | int a[N],ch[N][2],pre[N],size[N],val[N],small[N],rev[N];
| ^~~~
0_0_39346661_9542.cpp: In function 'void up(int)':
0_0_39346661_9542.cpp:27:9: error: reference to 'size' is ambiguous
27 | size[u]=size[L(u)]+size[R(u)]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39346661_9542.cpp:13:26: note: 'int size [100010]'
13 | int a[N],ch[N][2],pre[N],size[N],val[N],small[N],rev[N];
| ^~~~
0_0_39346661_9542.cpp:27:17: error: reference to 'size' is ambiguous
27 | size[u]=size[L(u)]+size[R(u)]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39346661_9542.cpp:13:26: note: 'int size [100010]'
13 | int a[N],ch[N][2],pre[N],size[N],val[N],small[N],rev[N];
| ^~~~
0_0_39346661_9542.cpp:27:28: error: reference to 'size' is ambiguous
27 | size[u]=size[L(u)]+size[R(u)]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39346661_9542.cpp:13:26: note: 'int size [100010]'
13 | int a[N],ch[N][2],pre[N],size[N],val[N],small[N],rev[N];
| ^~~~
0_0_39346661_9542.cpp: In function 'int getkth(int, int)':
0_0_39346661_9542.cpp:94:15: error: reference to 'size' is ambiguous
94 | int s=size[L(u)]+1;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39346661_9542.cpp:13:26: note: 'int size [100010]'
13 | int a[N],ch[N][2],pre[N],size[N],val[N],small[N],rev[N];
| ^~~~
0_0_39346661_9542.cpp: In function 'void init()':
0_0_39346661_9542.cpp:113:35: error: reference to 'size' is ambiguous
113 | L(root)=R(root)=pre[root]=size[root]=rev[root]=0;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39346661_9542.cpp:13:26: note: 'int size [100010]'
13 | int a[N],ch[N][2],pre[N],size[N],val[N],small[N],rev[N];
| ^~~~
0_0_39346661_9542.cpp: In function 'int getmin(int, int)':
0_0_39346661_9542.cpp:125:28: error: reference to 'size' is ambiguous
125 | if(val[u]==x) return 1+size[L(u)];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39346661_9542.cpp:13:26: note: 'int size [100010]'
13 | int a[N],ch[N][2],pre[N],size[N],val[N],small[N],rev[N];
| ^~~~
0_0_39346661_9542.cpp:127:31: error: reference to 'size' is ambiguous
127 | if(small[R(u)]==x) return size[L(u)]+1+getmin(R(u),x);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39346661_9542.cpp:13:26: note: 'int size [100010]'
13 | int a[N],ch[N][2],pre[N],size[N],val[N],small[N],rev[N];
| ^~~~
|