Borderou de evaluare (job #1425092)

Utilizator diana-t95FMI Tudoreanu Diana Elena diana-t95 Data 26 aprilie 2015 17:35:18
Problema Trilant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void bellmanford(int, int)’: user.cpp:26:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < g[nod].size(); i++) ^ user.cpp:31:17: error: reference to ‘next’ is ambiguous next[vf][g[nod][i].first] = nod; ^ user.cpp:11:5: note: candidates are: int next [3][100001] int next[3][maxn]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /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 ‘void afisare(int, int)’: user.cpp:39:29: error: reference to ‘next’ is ambiguous if (d[vf][nod]) afisare(next[vf][nod], vf); ^ user.cpp:11:5: note: candidates are: int next [3][100001] int next[3][maxn]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /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:74:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j < sol[i].size(); j++) ^

Ceva nu functioneaza?