|
|||||||||||||||
ultima problemă
grupă: mică
sursă: OMI 2016 ultimul articol
autor: Prof. Radu Vişinescu
ultimul software
autor: Prof. Emanuela Cerchez
|
Sursa 627766
Mesaj evaluator:
granita.cpp: In function 'int main()':
granita.cpp:16: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
granita.cpp:16: error: deducing from brace-enclosed initializer list requires #include <initializer_list>
granita.cpp:16: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
granita.cpp:18: warning: 'auto' will change meaning in C++0x; please remove it
granita.cpp:18: error: ISO C++ forbids declaration of 'it' with no type
granita.cpp:18: error: cannot convert 'std::_Rb_tree_const_iterator<std::pair<int, int> >' to 'int' in initialization
granita.cpp:18: error: no match for 'operator!=' in 'it != dispozitive.std::multiset<_Key, _Compare, _Alloc>::end [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]()'
granita.cpp:20: warning: 'auto' will change meaning in C++0x; please remove it
granita.cpp:20: error: ISO C++ forbids declaration of 'it2' with no type
granita.cpp:22: error: base operand of '->' is not a pointer
granita.cpp:22: error: base operand of '->' is not a pointer
granita.cpp:22: error: base operand of '->' is not a pointer
granita.cpp:22: error: base operand of '->' is not a pointer
granita.cpp:24: 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> >]
granita.cpp:27: error: no match for 'operator==' in 'it2 == dispozitive.std::multiset<_Key, _Compare, _Alloc>::end [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]()'
|
||||||||||||||
ajutor |