F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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];
                                                       ^~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 21:13:40, Gzip enabled