.campion
conectare | înregistrare | căutare
Pagina principală » Surse trimise » Sursa 596607

ultima problemă
grupă: mică
sursă: OMI 2016
ultimul articol
autor: Prof. Radu Vişinescu
ultimul software
autor: Prof. Emanuela Cerchez
Sursa 596607
Concurent: Andrei Boaca (hhhhhhh)Progres: evaluare completă
Problemă: roataPunctaj exemplu: 0
Limbaj: cppPunctaj final: 0
Dată: 30 sep 2019, 20:01
Mesaj evaluator:
roata.cpp: In function 'int main()': roata.cpp:24: warning: 'auto' will change meaning in C++0x; please remove it roata.cpp:24: error: ISO C++ forbids declaration of 'it' with no type roata.cpp:24: error: cannot convert 'std::_Rb_tree_const_iterator<std::pair<int, std::pair<int, int> > >' to 'int' in initialization roata.cpp:25: error: invalid type argument of 'unary *' roata.cpp:26: error: invalid type argument of 'unary *' roata.cpp:27: error: invalid type argument of 'unary *' roata.cpp:34: error: no matching function for call to 'std::set<std::pair<int, std::pair<int, int> >, std::less<std::pair<int, std::pair<int, int> > >, std::allocator<std::pair<int, std::pair<int, int> > > >::erase(int&)' /usr/include/c++/4.4/bits/stl_set.h:475: note: candidates are: void std::set<_Key, _Compare, _Alloc>::erase(typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator) [with _Key = std::pair<int, std::pair<int, int> >, _Compare = std::less<std::pair<int, std::pair<int, int> > >, _Alloc = std::allocator<std::pair<int, std::pair<int, int> > >] /usr/include/c++/4.4/bits/stl_set.h:490: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::size_type std::set<_Key, _Compare, _Alloc>::erase(const _Key&) [with _Key = std::pair<int, std::pair<int, int> >, _Compare = std::less<std::pair<int, std::pair<int, int> > >, _Alloc = std::allocator<std::pair<int, std::pair<int, int> > >] /usr/include/c++/4.4/bits/stl_set.h:505: note: void std::set<_Key, _Compare, _Alloc>::erase(typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator) [with _Key = std::pair<int, std::pair<int, int> >, _Compare = std::less<std::pair<int, std::pair<int, int> > >, _Alloc = std::allocator<std::pair<int, std::pair<int, int> > >]
ajutor