0_0_39330222_5405.cpp: In function 'void NewNode(int&, int, int)':
0_0_39330222_5405.cpp:23:5: error: reference to 'size' is ambiguous
23 | size[r] = 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++/bitset:52,
from .\stdc++.h:52:
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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp: In function 'void push_up(int)':
0_0_39330222_5405.cpp:40:5: error: reference to 'size' is ambiguous
40 | size[r] = size[ch[r][0]] + size[ch[r][1]] + 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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp:40:15: error: reference to 'size' is ambiguous
40 | size[r] = size[ch[r][0]] + size[ch[r][1]] + 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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp:40:32: error: reference to 'size' is ambiguous
40 | size[r] = size[ch[r][0]] + size[ch[r][1]] + 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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp: In function 'void Init()':
0_0_39330222_5405.cpp:69:33: error: reference to 'size' is ambiguous
69 | ch[root][0] = ch[root][1] = size[root] = pre[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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp: In function 'int Get_kth(int, int)':
0_0_39330222_5405.cpp:131:13: error: reference to 'size' is ambiguous
131 | int t = size[ch[r][0]] + 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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp: In function 'void ADD(int)':
0_0_39330222_5405.cpp:140:15: error: reference to 'size' is ambiguous
140 | int tmp = size[ch[root][0]] + 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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp:147:24: error: reference to 'size' is ambiguous
147 | Splay(Get_kth(root,size[root] - 1),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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp: In function 'void REVERSE()':
0_0_39330222_5405.cpp:162:15: error: reference to 'size' is ambiguous
162 | int tmp = size[ch[root][0]] + 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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp:169:24: error: reference to 'size' is ambiguous
169 | Splay(Get_kth(root,size[root] - 1),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_39330222_5405.cpp:7:37: note: 'int size [200010]'
7 | int pre[MAXN],ch[MAXN][2],key[MAXN],size[MAXN];
| ^~~~
0_0_39330222_5405.cpp: In function 'void INSERT(int)':
0_0_39330222_5405.cpp:185:27: error: reference to 'size' is ambiguous
185 | int tt = Get_kth(root,size[ch[root][0]]+2);
|
|