Borderou de evaluare (job #605443)

Utilizator vladtarniceruVlad Tarniceru vladtarniceru Data 28 iulie 2011 19:36:26
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function 'void bellmanford()': user.cpp:17: error: 'Q' was not declared in this scope user.cpp:19: error: 'class std::set<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >' has no member named 'front' user.cpp:19: error: 'class std::set<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >' has no member named 'front' user.cpp:20: error: 'class std::set<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >' has no member named 'front' user.cpp:36: error: no matching function for call to 'std::set<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::insert(__gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > >&)' /usr/include/c++/4.2/bits/stl_set.h:304: note: candidates are: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const _Key&) [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.2/bits/stl_set.h:331: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator std::set<_Key, _Compare, _Alloc>::insert(typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, const _Key&) [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >] user.cpp:19: warning: unused variable 'cost'

Ceva nu functioneaza?