Borderou de evaluare (job #1777856)
Utilizator | Data | 12 octombrie 2016 22:42:42 | |
---|---|---|---|
Problema | Autobuze | 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:56:7: error: no match for ‘operator=’ (operand types are ‘std::map<int, short unsigned int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >}’ and ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’)
it=mp.find(j);
^
user.cpp:56:7: note: candidates are:
In file included from /usr/include/c++/4.8/map:60:0,
from user.cpp:10:
/usr/include/c++/4.8/bits/stl_tree.h:157:12: note: std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >& std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >::operator=(const std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >&)
struct _Rb_tree_iterator
^
/usr/include/c++/4.8/bits/stl_tree.h:157:12: note: no known conversion for argument 1 from ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’ to ‘const std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >&’
/usr/include/c++/4.8/bits/stl_tree.h:157:12: note: std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >& std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >::operator=(std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >&&)
/usr/include/c++/4.8/bits/stl_tree.h:157:12: note: no known conversion for argument 1 from ‘std::map<int, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, int> >}’ to ‘std::_Rb_tree_iterator<std::pair<const int, short unsigned int> >&&’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !