Borderou de evaluare (job #1353891)

Utilizator better_nerf_ireliaUNIBUC Bungiu Ghita Postavaru better_nerf_irelia Data 21 februarie 2015 14:52:08
Problema Por Costel si Algoritmul Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void expand()’: user.cpp:45:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<graph[top.nod].size();++i) ^ user.cpp:50:32: error: reference to ‘next’ is ambiguous if(back_e[e.y]!=-1)next[edges[back_e[e.y]].x]--; ^ user.cpp:37:17: note: candidates are: int next [100005] int back_e[INF],next[INF]; ^ 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:56:13: error: reference to ‘next’ is ambiguous next[top.nod]++; ^ user.cpp:37:17: note: candidates are: int next [100005] int back_e[INF],next[INF]; ^ 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:70:80: error: reference to ‘next’ is ambiguous for(int i=1;i<=n;++i){graph[i].clear();costs[i]=999999999;back_e[i]=-1;next[i]==0;} ^ user.cpp:37:17: note: candidates are: int next [100005] int back_e[INF],next[INF]; ^ 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:87:16: error: reference to ‘next’ is ambiguous if(next[nd]==0) ^ user.cpp:37:17: note: candidates are: int next [100005] int back_e[INF],next[INF]; ^ 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:

Ceva nu functioneaza?