0_0_38608223_16206.cpp: In function 'void insert(int, int, int, int)':
0_0_38608223_16206.cpp:15:2: error: reference to 'size' is ambiguous
size[root]=1;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:66,
from 0_0_38608223_16206.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
0_0_38608223_16206.cpp:10:5: note: 'int size [1800090]'
int size[N*18],root[N],lchild[N*18],rchild[N*18];
^~~~
0_0_38608223_16206.cpp: In function 'int Merge(int, int)':
0_0_38608223_16206.cpp:29:5: error: reference to 'size' is ambiguous
size[root1]+=size[root2];
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:66,
from 0_0_38608223_16206.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
0_0_38608223_16206.cpp:10:5: note: 'int size [1800090]'
int size[N*18],root[N],lchild[N*18],rchild[N*18];
^~~~
0_0_38608223_16206.cpp:29:18: error: reference to 'size' is ambiguous
size[root1]+=size[root2];
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:66,
from 0_0_38608223_16206.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
0_0_38608223_16206.cpp:10:5: note: 'int size [1800090]'
int size[N*18],root[N],lchild[N*18],rchild[N*18];
^~~~
0_0_38608223_16206.cpp:30:63: error: reference to 'size' is ambiguous
if(!lchild[root1]&&!rchild[root1])ans[root1]=(tree[root1]/size[root1]+tree[root1])*size[root1]/2;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:66,
from 0_0_38608223_16206.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
0_0_38608223_16206.cpp:10:5: note: 'int size [1800090]'
int size[N*18],root[N],lchild[N*18],rchild[N*18];
^~~~
0_0_38608223_16206.cpp:30:88: error: reference to 'size' is ambiguous
if(!lchild[root1]&&!rchild[root1])ans[root1]=(tree[root1]/size[root1]+tree[root1])*size[root1]/2;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:66,
from 0_0_38608223_16206.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
0_0_38608223_16206.cpp:10:5: note: 'int size [1800090]'
int size[N*18],root[N],lchild[N*18],rchild[N*18];
^~~~
0_0_38608223_16206.cpp:31:79: error: reference to 'size' is ambiguous
else ans[root1]=ans[lchild[root1]]+ans[rchild[root1]]+tree[lchild[root1]]*size[rchild[root1]];
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:66,
from 0_0_38608223_16206.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
0_0_38608223_16206.cpp:10:5: note: 'int size [1800090]'
int size[N*18],root[N],lchild[N*18],rchild[N*18];
^~~~
0_0_38608223_16206.cpp: In function 'int main()':
0_0_38608223_16206.cpp:53:57: error: reference to 'size' is ambiguous
for(int i=0;i<100005;i++)vt[i].clear(),ans[i]=tree[i]=size[i]=0;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:66,
from 0_0_38608223_16206.cpp:2:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
size(const _Tp (&/*__array*/)[_Nm]) noexcept
^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
size(const _Container& __cont) noexcept(noexcept(__cont.size()))
^~~~
0_0_38608223_16206.cpp:10:5: note: 'int size [1800090]'
int size[N*18],root[N],lchild[N*18],rchild[N*18];
^~~~
|