0_0_39661061_18651.cpp: In function 'void dfs1(int, int)':
0_0_39661061_18651.cpp:14:9: error: reference to 'size' is ambiguous
14 | size[x]=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_39661061_18651.cpp:12:5: note: 'int size [100005]'
12 | int size[100005],f[100005],dep[100005],hson[100005],dfn[100005],top[100005],rnk[100005],cnt;
| ^~~~
0_0_39661061_18651.cpp:21:17: error: reference to 'size' is ambiguous
21 | size[x]+=size[y];
| ^~~~
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_39661061_18651.cpp:12:5: note: 'int size [100005]'
12 | int size[100005],f[100005],dep[100005],hson[100005],dfn[100005],top[100005],rnk[100005],cnt;
| ^~~~
0_0_39661061_18651.cpp:21:26: error: reference to 'size' is ambiguous
21 | size[x]+=size[y];
| ^~~~
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_39661061_18651.cpp:12:5: note: 'int size [100005]'
12 | int size[100005],f[100005],dep[100005],hson[100005],dfn[100005],top[100005],rnk[100005],cnt;
| ^~~~
0_0_39661061_18651.cpp:22:20: error: reference to 'size' is ambiguous
22 | if(size[hson[x]]<size[y]) hson[x]=y;
| ^~~~
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_39661061_18651.cpp:12:5: note: 'int size [100005]'
12 | int size[100005],f[100005],dep[100005],hson[100005],dfn[100005],top[100005],rnk[100005],cnt;
| ^~~~
0_0_39661061_18651.cpp:22:34: error: reference to 'size' is ambiguous
22 | if(size[hson[x]]<size[y]) hson[x]=y;
| ^~~~
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_39661061_18651.cpp:12:5: note: 'int size [100005]'
12 | int size[100005],f[100005],dep[100005],hson[100005],dfn[100005],top[100005],rnk[100005],cnt;
| ^~~~
0_0_39661061_18651.cpp: In function 'int main()':
0_0_39661061_18651.cpp:125:46: error: reference to 'size' is ambiguous
125 | rt[i]=ans[i]=head[i]=size[i]=f[i]=dep[i]=hson[i]=dfn[i]=top[i]=rnk[i]=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_39661061_18651.cpp:12:5: note: 'int size [100005]'
12 | int size[100005],f[100005],dep[100005],hson[100005],dfn[100005],top[100005],rnk[100005],cnt;
| ^~~~
|