Borderou de evaluare (job #1536622)

Utilizator rzvrzvNicolescu Razvan rzvrzv Data 26 noiembrie 2015 14:21:44
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:35:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<g[crt].size();i++) ^ user.cpp:37:13: error: reference to ‘next’ is ambiguous next=g[crt][i].first; ^ user.cpp:10:39: note: candidates are: int next int ap[50002],best[50002],i,n,x,y,z,m,next,crt; ^ 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:38:21: error: reference to ‘next’ is ambiguous if(best[next]>best[crt]+g[crt][i].second) ^ user.cpp:10:39: note: candidates are: int next int ap[50002],best[50002],i,n,x,y,z,m,next,crt; ^ 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:40:22: error: reference to ‘next’ is ambiguous best[next]=best[crt]+g[crt][i].second; ^ user.cpp:10:39: note: candidates are: int next int ap[50002],best[50002],i,n,x,y,z,m,next,crt; ^ 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:41:25: error: reference to ‘next’ is ambiguous if(!inq[next]) ^ user.cpp:10:39: note: candidates are: int next int ap[50002],best[50002],i,n,x,y,z,m,next,crt; ^ 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)

Ceva nu functioneaza?