|
|||||||||||||||
ultima problemă
grupă: mică
sursă: OMI 2016 ultimul articol
autor: Prof. Radu Vişinescu
ultimul software
autor: Prof. Emanuela Cerchez
|
Sursa 495332
Mesaj evaluator:
cuburi.cpp: In function 'void rm_element(int)':
cuburi.cpp:38: warning: 'auto' will change meaning in C++0x; please remove it
cuburi.cpp:38: error: ISO C++ forbids declaration of 'it' with no type
cuburi.cpp:38: error: cannot convert 'std::_Rb_tree_const_iterator<std::pair<int, int> >' to 'int' in initialization
cuburi.cpp:39: error: no match for 'operator==' in 'it == S.std::set<_Key, _Compare, _Alloc>::begin [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]()'
cuburi.cpp:42: error: base operand of '->' is not a pointer
cuburi.cpp:43: error: base operand of '->' is not a pointer
cuburi.cpp:43: error: base operand of '->' is not a pointer
cuburi.cpp:44: error: base operand of '->' is not a pointer
cuburi.cpp:45: error: base operand of '->' is not a pointer
cuburi.cpp:47: error: no matching function for call to 'std::set<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_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, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<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, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<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, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]
cuburi.cpp: In function 'int main()':
cuburi.cpp:70: warning: comparison between signed and unsigned integer expressions
cuburi.cpp:86: warning: 'auto' will change meaning in C++0x; please remove it
cuburi.cpp:86: error: expected initializer before ':' token
cuburi.cpp:90: error: expected primary-expression before '}' token
cuburi.cpp:90: error: expected ')' before '}' token
cuburi.cpp:90: error: expected primary-expression before '}' token
cuburi.cpp:90: error: expected ';' before '}' token
cuburi.cpp:57: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result
cuburi.cpp:61: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result
cuburi.cpp:63: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result
|
||||||||||||||
ajutor |