0_0_39945225_27756.cpp: In function 'void rotate(int&, int)':
0_0_39945225_27756.cpp:42:5: error: reference to 'size' is ambiguous
42 | size[k]=size[t];
| ^~~~
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 gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_39945225_27756.cpp:7:
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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:42:13: error: reference to 'size' is ambiguous
42 | size[k]=size[t];
| ^~~~
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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:43:5: error: reference to 'size' is ambiguous
43 | size[t]=size[sons[t][0]]+size[sons[t][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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:43:13: error: reference to 'size' is ambiguous
43 | size[t]=size[sons[t][0]]+size[sons[t][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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:43:30: error: reference to 'size' is ambiguous
43 | size[t]=size[sons[t][0]]+size[sons[t][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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp: In function 'void maintain(int&, bool)':
0_0_39945225_27756.cpp:51:13: error: reference to 'size' is ambiguous
51 | if (size[sons[sons[t][0]][0]]>size[sons[t][1]]) rotate(t,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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:51:39: error: reference to 'size' is ambiguous
51 | if (size[sons[sons[t][0]][0]]>size[sons[t][1]]) rotate(t,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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:52:18: error: reference to 'size' is ambiguous
52 | else if (size[sons[sons[t][0]][1]]>size[sons[t][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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:52:44: error: reference to 'size' is ambiguous
52 | else if (size[sons[sons[t][0]][1]]>size[sons[t][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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:58:13: error: reference to 'size' is ambiguous
58 | if (size[sons[sons[t][1]][1]]>size[sons[t][0]]) rotate(t,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_39945225_27756.cpp:31:19: note: 'int size [20010]'
31 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39945225_27756.cpp:58:39: error: reference to 'size' is ambiguous
58 | if (size[sons[sons[t][1]][1]]>size[sons[t][0]]) rotate(t,0);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mi
|