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_27958522_28888.cpp: In function 'void add_edge(int, int)':
0_0_27958522_28888.cpp:33:23: error: reference to 'begin' is ambiguous
  e->to = v, e->next = begin[u], begin[u] = e;
                       ^
0_0_27958522_28888.cpp:23:21: note: candidates are: Edge* begin [100010]
 } edge[N_MAX * 2], *begin[N_MAX];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
     begin(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
     begin(const _Container& __cont) -> decltype(__cont.begin())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
     begin(_Container& __cont) -> decltype(__cont.begin())
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note:                 template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
     begin(initializer_list<_Tp> __ils) noexcept
     ^
0_0_27958522_28888.cpp:33:33: error: reference to 'begin' is ambiguous
  e->to = v, e->next = begin[u], begin[u] = e;
                                 ^
0_0_27958522_28888.cpp:23:21: note: candidates are: Edge* begin [100010]
 } edge[N_MAX * 2], *begin[N_MAX];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
     begin(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
     begin(const _Container& __cont) -> decltype(__cont.begin())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
     begin(_Container& __cont) -> decltype(__cont.begin())
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note:                 template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
     begin(initializer_list<_Tp> __ils) noexcept
     ^
0_0_27958522_28888.cpp: In function 'void dfs(int)':
0_0_27958522_28888.cpp:73:18: error: reference to 'begin' is ambiguous
  for ( Edge *e = begin[x]; e; e = e->next ) {
                  ^
0_0_27958522_28888.cpp:23:21: note: candidates are: Edge* begin [100010]
 } edge[N_MAX * 2], *begin[N_MAX];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
     begin(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
     begin(const _Container& __cont) -> decltype(__cont.begin())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
     begin(_Container& __cont) -> decltype(__cont.begin())
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note:                 template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
     begin(initializer_list<_Tp> __ils) noexcept
     ^
0_0_27958522_28888.cpp: In function 'int main()':
0_0_27958522_28888.cpp:169:10: error: reference to 'begin' is ambiguous
   memset(begin, 0, sizeof(begin));
          ^
0_0_27958522_28888.cpp:23:21: note: candidates are: Edge* begin [100010]
 } edge[N_MAX * 2], *begin[N_MAX];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
     begin(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
     begin(const _Container& __cont) -> decltype(__cont.begin())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
     begin(_Container& __cont) -> decltype(__cont.begin())
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note:                 template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
     begin(initializer_list<_Tp> __ils) noexcept
     ^
0_0_27958522_28888.cpp:169:27: error: reference to 'begin' is ambiguous
   memset(begin, 0, sizeof(begin));
                           ^
0_0_27958522_28888.cpp:23:21: note: candidates are: Edge* begin [100010]
 } edge[N_MAX * 2], *begin[N_MAX];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
     begin(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:58:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
     begin(const _Container& __cont) -> decltype(__cont.begin())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:48:5: note:                 template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
     begin(_Container& __cont) -> decltype(__cont.begin())
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:75:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_27958522_28888.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:89:5: note:                 template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
     begin(initializer_list<_Tp> __ils) noexcept
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-19 16:43:01, Gzip enabled