0_0_39346657_2699.cpp: In function 'void rotate(int&, int)':
0_0_39346657_2699.cpp:46:5: error: reference to 'size' is ambiguous
46 | 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++/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_39346657_2699.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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp:46:13: error: reference to 'size' is ambiguous
46 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp:47:5: error: reference to 'size' is ambiguous
47 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp:47:13: error: reference to 'size' is ambiguous
47 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp:47:30: error: reference to 'size' is ambiguous
47 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp: In function 'void maintain(int&, bool)':
0_0_39346657_2699.cpp:55:13: error: reference to 'size' is ambiguous
55 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp:55:39: error: reference to 'size' is ambiguous
55 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp:56:18: error: reference to 'size' is ambiguous
56 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp:56:44: error: reference to 'size' is ambiguous
56 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN],sbttail;
| ^~~~
0_0_39346657_2699.cpp:62:13: error: reference to 'size' is ambiguous
62 | 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_39346657_2699.cpp:35:19: note: 'int size [20010]'
35 | int sons[MAXN][2],size[MAXN],data[MAXN],sbt[MAXN]
|