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

ultima problemă
grupă: mică
sursă: OMI 2016
ultimul articol
autor: Prof. Radu Vişinescu
ultimul software
autor: Prof. Emanuela Cerchez
Sursa 630449
Concurent: Andrei Verestiuc (Verestiuc Andrei)Progres: evaluare completă
Problemă: borcanePunctaj exemplu: 0
Limbaj: cppPunctaj final: 0
Dată: 3 oct 2023, 17:35
Mesaj evaluator:
borcane.cpp: In function 'int main()': borcane.cpp:20: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x borcane.cpp:20: error: deducing from brace-enclosed initializer list requires #include <initializer_list> borcane.cpp:20: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x borcane.cpp:25: warning: 'auto' will change meaning in C++0x; please remove it borcane.cpp:25: error: ISO C++ forbids declaration of 'y' with no type borcane.cpp:25: error: cannot convert 'std::_Rb_tree_const_iterator<std::pair<int, int> >' to 'int' in initialization borcane.cpp:26: warning: 'auto' will change meaning in C++0x; please remove it borcane.cpp:26: error: ISO C++ forbids declaration of 'x' with no type borcane.cpp:27: error: invalid type argument of 'unary *' borcane.cpp:27: error: invalid type argument of 'unary *' borcane.cpp:28: error: invalid type argument of 'unary *' borcane.cpp:28: error: invalid type argument of 'unary *' borcane.cpp:29: error: no matching function for call to 'std::multiset<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::erase(int&)' /usr/include/c++/4.4/bits/stl_multiset.h:463: note: candidates are: void std::multiset<_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, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.4/bits/stl_multiset.h:478: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::size_type std::multiset<_Key, _Compare, _Alloc>::erase(const _Key&) [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.4/bits/stl_multiset.h:493: note: void std::multiset<_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, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >] borcane.cpp:30: error: no matching function for call to 'std::multiset<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::erase(int&)' /usr/include/c++/4.4/bits/stl_multiset.h:463: note: candidates are: void std::multiset<_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, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.4/bits/stl_multiset.h:478: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::size_type std::multiset<_Key, _Compare, _Alloc>::erase(const _Key&) [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >] /usr/include/c++/4.4/bits/stl_multiset.h:493: note: void std::multiset<_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, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >] borcane.cpp:32: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x borcane.cpp:32: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x borcane.cpp:34: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x borcane.cpp:34: error: deducing from brace-enclosed initializer list requires #include <initializer_list> borcane.cpp:34: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x borcane.cpp:35: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x borcane.cpp:35: error: deducing from brace-enclosed initializer list requires #include <initializer_list> borcane.cpp:35: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x borcane.cpp:44: warning: comparison between signed and unsigned integer expressions
ajutor