0_0_38597166_18294.cpp: In function 'void dfs1(int)':
0_0_38597166_18294.cpp:83:5: error: reference to 'size' is ambiguous
size[x] = 1;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:51,
from 0_0_38597166_18294.cpp:3:
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_38597166_18294.cpp:24:55: note: 'int size [100010]'
int fa[maxn],son[maxn],pos[maxn],ppos[maxn],top[maxn],size[maxn],dep[maxn];
^~~~
0_0_38597166_18294.cpp:91:12: error: reference to 'size' is ambiguous
if(size[e[i].v] > size[son[x]])
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:51,
from 0_0_38597166_18294.cpp:3:
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_38597166_18294.cpp:24:55: note: 'int size [100010]'
int fa[maxn],son[maxn],pos[maxn],ppos[maxn],top[maxn],size[maxn],dep[maxn];
^~~~
0_0_38597166_18294.cpp:91:27: error: reference to 'size' is ambiguous
if(size[e[i].v] > size[son[x]])
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:51,
from 0_0_38597166_18294.cpp:3:
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_38597166_18294.cpp:24:55: note: 'int size [100010]'
int fa[maxn],son[maxn],pos[maxn],ppos[maxn],top[maxn],size[maxn],dep[maxn];
^~~~
0_0_38597166_18294.cpp:93:9: error: reference to 'size' is ambiguous
size[x] += size[e[i].v];
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:51,
from 0_0_38597166_18294.cpp:3:
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_38597166_18294.cpp:24:55: note: 'int size [100010]'
int fa[maxn],son[maxn],pos[maxn],ppos[maxn],top[maxn],size[maxn],dep[maxn];
^~~~
0_0_38597166_18294.cpp:93:20: error: reference to 'size' is ambiguous
size[x] += size[e[i].v];
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:51,
from 0_0_38597166_18294.cpp:3:
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_38597166_18294.cpp:24:55: note: 'int size [100010]'
int fa[maxn],son[maxn],pos[maxn],ppos[maxn],top[maxn],size[maxn],dep[maxn];
^~~~
0_0_38597166_18294.cpp: In function 'int main()':
0_0_38597166_18294.cpp:155:16: error: reference to 'size' is ambiguous
memset(size,0,sizeof(size));
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:51,
from 0_0_38597166_18294.cpp:3:
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_38597166_18294.cpp:24:55: note: 'int size [100010]'
int fa[maxn],son[maxn],pos[maxn],ppos[maxn],top[maxn],size[maxn],dep[maxn];
^~~~
0_0_38597166_18294.cpp:155:30: error: reference to 'size' is ambiguous
memset(size,0,sizeof(size));
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:51,
from 0_0_38597166_18294.cpp:3:
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_38597166_18294.cpp:24:55: note: 'int size [100010]'
int fa[maxn],son[maxn],pos[maxn],ppos[maxn],top[maxn],size[maxn],dep[maxn];
^~~~
0_0_38597166_18294.cpp:156:29: error: reference to 'size' is ambiguous
memset(son,0,sizeof(size));
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:51,
from 0_0_38597166_18294.cpp:3:
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_38597166_18294.cpp:24:55: note: 'int size [100010]'
int fa[maxn],son[maxn],pos[maxn],ppos[maxn],top[maxn],size[maxn],dep[maxn];
^~~~
|