Borderou de evaluare (job #1341425)

Utilizator Pintilie_AndreiFII-Pintilie Andrei Pintilie_Andrei Data 12 februarie 2015 18:52:08
Problema Bridge Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Prim()’: user.cpp:70:38: error: no matching function for call to ‘std::multiset<str>::find(short int&)’ heap.erase(heap.find(w.nr)); ^ user.cpp:70:38: note: candidates are: In file included from /usr/include/c++/4.8/set:62:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_multiset.h:643:7: note: std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = str; _Compare = std::less<str>; _Alloc = std::allocator<str>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<str>; std::multiset<_Key, _Compare, _Alloc>::key_type = str] find(const key_type& __x) ^ /usr/include/c++/4.8/bits/stl_multiset.h:643:7: note: no known conversion for argument 1 from ‘short int’ to ‘const key_type& {aka const str&}’ /usr/include/c++/4.8/bits/stl_multiset.h:647:7: note: std::multiset<_Key, _Compare, _Alloc>::const_iterator std::multiset<_Key, _Compare, _Alloc>::find(const key_type&) const [with _Key = str; _Compare = std::less<str>; _Alloc = std::allocator<str>; std::multiset<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<str>; std::multiset<_Key, _Compare, _Alloc>::key_type = str] find(const key_type& __x) const ^ /usr/include/c++/4.8/bits/stl_multiset.h:647:7: note: no known conversion for argument 1 from ‘short int’ to ‘const key_type& {aka const str&}’

Ceva nu functioneaza?