Borderou de evaluare (job #1855744)
Utilizator | Data | 23 ianuarie 2017 21:44:56 | |
---|---|---|---|
Problema | Timbre | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:11: error: no match for ‘operator=’ (operand types are ‘std::set<std::pair<int, int> >::iterator {aka std::_Rb_tree_const_iterator<std::pair<int, int> >}’ and ‘<unresolved overloaded function type>’)
for(it=heap.begin;it!=heap.end() && it->first<sum;i++)
^
user.cpp:25:11: note: candidates are:
In file included from /usr/include/c++/4.8/set:60:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_tree.h:228:12: note: std::_Rb_tree_const_iterator<std::pair<int, int> >& std::_Rb_tree_const_iterator<std::pair<int, int> >::operator=(const std::_Rb_tree_const_iterator<std::pair<int, int> >&)
struct _Rb_tree_const_iterator
^
/usr/include/c++/4.8/bits/stl_tree.h:228:12: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const std::_Rb_tree_const_iterator<std::pair<int, int> >&’
/usr/include/c++/4.8/bits/stl_tree.h:228:12: note: std::_Rb_tree_const_iterator<std::pair<int, int> >& std::_Rb_tree_const_iterator<std::pair<int, int> >::operator=(std::_Rb_tree_const_iterator<std::pair<int, int> >&&)
/usr/include/c++/4.8/bits/stl_tree.h:228:12: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::_Rb_tree_const_iterator<std::pair<int, int> >&&’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !