Borderou de evaluare (job #985745)

Utilizator S7012MYPetru Trimbitas S7012MY Data 17 august 2013 13:31:34
Problema Album Status done
Runda Concursul Mihai Patrascu 2013 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void addedge(int, int)’: user.cpp:52:17: error: reference to ‘next’ is ambiguous point[nedge]=v,next[nedge]=head[u],head[u]=(nedge++); ^ user.cpp:33:34: note: candidates are: int next [1000005] int head[maxnode],point[maxedge],next[maxedge]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0, from /usr/local/include/c++/4.8.0/vector:60, from user.cpp:1: /usr/local/include/c++/4.8.0/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 ^ user.cpp: In function ‘bool find_path(int)’: user.cpp:56:28: error: reference to ‘next’ is ambiguous for (int k=head[v];k>=0;k=next[k]) ^ user.cpp:33:34: note: candidates are: int next [1000005] int head[maxnode],point[maxedge],next[maxedge]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0, from /usr/local/include/c++/4.8.0/vector:60, from user.cpp:1: /usr/local/include/c++/4.8.0/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 ^ user.cpp: In function ‘int doMatch()’: user.cpp:75:40: error: reference to ‘next’ is ambiguous for (int k=head[i];p1[i]<0 && k>=0;k=next[k]) ^ user.cpp:33:34: note: candidates are: int next [1000005] int head[maxnode],point[maxedge],next[maxedge]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0, from /usr/local/include/c++/4.8.0/vector:60, from user.cpp:1: /usr/local/include/c++/4.8.0/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 ^

Ceva nu functioneaza?