Borderou de evaluare (job #528295)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Magazin (clasele 8-9) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 17 feb. 2020 20:07:49 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
user.cpp:23:9: error: no match for ‘operator=’ in ‘t = s.std::multiset<_Key, _Compare, _Alloc>::end [with _Key = int, _Compare = std::less<int>, _Alloc = std::allocator<int>, std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>]’
user.cpp:23:9: note: candidates are:
/usr/include/c++/4.6/bits/stl_tree.h:227:12: note: std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(const std::_Rb_tree_const_iterator<int>&)
/usr/include/c++/4.6/bits/stl_tree.h:227:12: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const std::_Rb_tree_const_iterator<int>&’
/usr/include/c++/4.6/bits/stl_tree.h:227:12: note: std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(std::_Rb_tree_const_iterator<int>&&)
/usr/include/c++/4.6/bits/stl_tree.h:227:12: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::_Rb_tree_const_iterator<int>&&’
user.cpp:26:18: error: ‘insert’ was not declared in this scope
user.cpp:27:6: error: expected ‘;’ before ‘s’