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_38538769_7960.cpp: In function 'void addedge(int, int)':
0_0_38538769_7960.cpp:29:16: error: reference to 'next' is ambiguous
     to[edge]=v,next[edge]=head[u],head[u]=edge++;
                ^
0_0_38538769_7960.cpp:12:17: note: candidates are: int next [200010]
 int to[maxn<<1],next[maxn<<1];
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_38538769_7960.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_38538769_7960.cpp: In function 'void dfs(int)':
0_0_38538769_7960.cpp:62:5: error: reference to 'begin' is ambiguous
     begin[now]=++index;
     ^
0_0_38538769_7960.cpp:10:21: note: candidates are: int begin [100005]
 int head[maxn],edge,begin[maxn],end[maxn];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_38538769_7960.cpp:1:
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
     ^
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++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_38538769_7960.cpp:1:
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())
     ^
0_0_38538769_7960.cpp:65:32: error: reference to 'next' is ambiguous
     for(int i=head[now]; ~i; i=next[i])
                                ^
0_0_38538769_7960.cpp:12:17: note: candidates are: int next [200010]
 int to[maxn<<1],next[maxn<<1];
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_38538769_7960.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_38538769_7960.cpp:68:5: error: reference to 'end' is ambiguous
     end[now]=index;
     ^
0_0_38538769_7960.cpp:10:33: note: candidates are: int end [100005]
 int head[maxn],edge,begin[maxn],end[maxn];
                                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_38538769_7960.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
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++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_38538769_7960.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note:                 template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
0_0_38538769_7960.cpp: In function 'int main()':
0_0_38538769_7960.cpp:106:20: error: reference to 'begin' is ambiguous
             q[i].l=begin[u];
                    ^
0_0_38538769_7960.cpp:10:21: note: candidates are: int begin [100005]
 int head[maxn],edge,begin[maxn],end[maxn];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_38538769_7960.cpp:1:
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
     ^
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++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_38538769_7960.cpp:1:
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())
     ^
0_0


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-06-16 08:43:11, Gzip enabled