Borderou de evaluare (job #1902339)

Utilizator hegedusPaul Hegedus hegedus Data 4 martie 2017 15:25:48
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void search_next(int)’: user.cpp:29:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int x=0;x<a[i].size();x++) ^ user.cpp:34:13: error: reference to ‘next’ is ambiguous next=a[i][x]; ^ user.cpp:8:33: note: candidates are: int next int n,m,i,j,x,d,ix,jx,dmin=1000,next,k,ctotal; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/vector:60, from user.cpp:2: /usr/include/c++/4.8/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 main()’: user.cpp:49:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(x=0;x<w.size();x++) ^ user.cpp:51:13: error: reference to ‘next’ is ambiguous viz[next]=1; ^ user.cpp:8:33: note: candidates are: int next int n,m,i,j,x,d,ix,jx,dmin=1000,next,k,ctotal; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/vector:60, from user.cpp:2: /usr/include/c++/4.8/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:52:21: error: reference to ‘next’ is ambiguous w.push_back(next); ^ user.cpp:8:33: note: candidates are: int next int n,m,i,j,x,d,ix,jx,dmin=1000,next,k,ctotal; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/vector:60, from user.cpp:2: /usr/include/c++/4.8/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:55:16: error: reference to ‘next’ is ambiguous v[k].j=next; ^ user.cpp:8:33: note: candidates are: int next int n,m,i,j,x,d,ix,jx,dmin=1000,next,k,ctotal; ^

Ceva nu functioneaza?