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

ultima problemă
grupă: mică
sursă: OMI 2016
ultimul articol
autor: Prof. Radu Vişinescu
ultimul software
autor: Prof. Emanuela Cerchez
Sursa 499864
Concurent: Tudor Coman (tudorcoman)Progres: evaluare completă
Problemă: revPunctaj exemplu: 0
Limbaj: cppPunctaj final: 0
Dată: 8 ian 2017, 13:01
Mesaj evaluator:
rev.cpp: In function 'void reinit()': rev.cpp:32: warning: 'auto' will change meaning in C++0x; please remove it rev.cpp:32: error: expected initializer before ':' token rev.cpp:39: error: expected primary-expression before 'for' rev.cpp:39: error: expected ';' before 'for' rev.cpp:39: error: expected primary-expression before 'for' rev.cpp:39: error: expected ')' before 'for' rev.cpp:31: warning: unused variable 'pos' rev.cpp: In function 'int query(int)': rev.cpp:49: warning: 'auto' will change meaning in C++0x; please remove it rev.cpp:49: error: expected initializer before ':' token rev.cpp:55: error: expected primary-expression before '}' token rev.cpp:55: error: expected ';' before '}' token rev.cpp:55: error: expected primary-expression before '}' token rev.cpp:55: error: expected ')' before '}' token rev.cpp:55: error: expected primary-expression before '}' token rev.cpp:55: error: expected ';' before '}' token rev.cpp:55: warning: no return statement in function returning non-void rev.cpp: In function 'int split(int)': rev.cpp:62: warning: 'auto' will change meaning in C++0x; please remove it rev.cpp:62: error: ISO C++ forbids declaration of 'it' with no type rev.cpp:62: error: cannot convert 'std::_List_iterator<Interval>' to 'int' in initialization rev.cpp:62: error: no match for 'operator!=' in 'it != lista.std::list<_Tp, _Alloc>::end [with _Tp = Interval, _Alloc = std::allocator<Interval>]()' rev.cpp:63: error: base operand of '->' is not a pointer rev.cpp:63: error: base operand of '->' is not a pointer rev.cpp:64: error: base operand of '->' is not a pointer rev.cpp:64: error: base operand of '->' is not a pointer rev.cpp:66: error: base operand of '->' is not a pointer rev.cpp:66: error: base operand of '->' is not a pointer rev.cpp:69: error: invalid type argument of 'unary *' rev.cpp:70: warning: 'auto' will change meaning in C++0x; please remove it rev.cpp:70: error: ISO C++ forbids declaration of 'k' with no type rev.cpp:70: error: no matching function for call to 'std::list<Interval, std::allocator<Interval> >::erase(int&)' /usr/include/c++/4.4/bits/list.tcc:107: note: candidates are: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>) [with _Tp = Interval, _Alloc = std::allocator<Interval>] /usr/include/c++/4.4/bits/stl_list.h:1092: note: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>, std::_List_iterator<_Tp>) [with _Tp = Interval, _Alloc = std::allocator<Interval>] rev.cpp:71: error: base operand of '->' is not a pointer rev.cpp:72: error: no matching function for call to 'std::list<Interval, std::allocator<Interval> >::insert(int&, Interval)' /usr/include/c++/4.4/bits/list.tcc:97: note: candidates are: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, const _Tp&) [with _Tp = Interval, _Alloc = std::allocator<Interval>] /usr/include/c++/4.4/bits/stl_list.h:1027: note: void std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, size_t, const _Tp&) [with _Tp = Interval, _Alloc = std::allocator<Interval>] rev.cpp:73: error: no matching function for call to 'std::list<Interval, std::allocator<Interval> >::insert(int&, Interval)' /usr/include/c++/4.4/bits/list.tcc:97: note: candidates are: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, const _Tp&) [with _Tp = Interval, _Alloc = std::allocator<Interval>] /usr/include/c++/4.4/bits/stl_list.h:1027: note: void std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, size_t, const _Tp&) [with _Tp = Interval, _Alloc = std::allocator<Interval>] rev.cpp:75: error: no matching function for call to 'std::list<Interval, std::allocator<Interval> >::insert(int&, Interval)' /usr/include/c++/4.4/bits/list.tcc:97: note: candidates are: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, const _Tp&) [with _Tp = Interval, _Alloc = std::allocator<Interval>] /usr/include/c++/4.4/bits/stl_list.h:1027: note: void std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, size_t, const _Tp&) [with _Tp = Interval, _Alloc = std::allocator<Interval>] rev.cpp:76: error: no matching function for call to 'std::list<Interval, std::allocator<Interval> >::insert(int&, Interval)' /usr/include/c++/4.4/bits/list.tcc:97: note: candidates are: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, const _Tp&) [with _Tp = Interval, _Alloc = std::allocator<Interval>] /usr/include/c++/4.4/bits/stl_list.h:1027: note: void std::list<_Tp, _Alloc>::insert(std::_List_iterator<_Tp>, size_t, const _Tp&) [with _Tp = Interval, _Alloc = std::allocator<Interval>] rev.cpp: In function 'void update(int, int)': rev.cpp:88: warning: 'auto' will change meaning in C++0x; please remove it rev.cpp:88: error: ISO C++ forbids declaration of 'it1' with no type rev.cpp:88: error: cannot convert 'std::_List_iterator<Interval>' to 'int' in initialization rev.cpp:88: error: ISO C++ forbids declaration of 'it2' with no type rev.cpp:93: error: invalid type argument of 'unary *' rev.cpp:93: error: invalid type argument of 'unary *' rev.cpp:94: error: base operand of '->' is not a pointer rev.cpp:95: error: base operand of '->' is not a pointer rev.cpp:101: error: base operand of '->' is not a pointer rev.cpp: In function 'int main()': rev.cpp:105: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result rev.cpp:106: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result rev.cpp:108: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result rev.cpp:113: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result rev.cpp:119: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result In file included from /usr/include/c++/4.4/bits/stl_algobase.h:67, from /usr/include/c++/4.4/list:61, from rev.cpp:3: /usr/include/c++/4.4/bits/stl_iterator_base_types.h: At global scope: /usr/include/c++/4.4/bits/stl_iterator_base_types.h: In instantiation of 'std::iterator_traits<int>': /usr/include/c++/4.4/bits/stl_iterator_base_funcs.h:171: instantiated from 'void std::advance(_InputIterator&, _Distance) [with _InputIterator = int, _Distance = int]' rev.cpp:89: instantiated from here /usr/include/c++/4.4/bits/stl_iterator_base_types.h:127: error: 'int' is not a class, struct, or union type /usr/include/c++/4.4/bits/stl_iterator_base_types.h:128: error: 'int' is not a class, struct, or union type /usr/include/c++/4.4/bits/stl_iterator_base_types.h:129: error: 'int' is not a class, struct, or union type /usr/include/c++/4.4/bits/stl_iterator_base_types.h:130: error: 'int' is not a class, struct, or union type /usr/include/c++/4.4/bits/stl_iterator_base_types.h:131: error: 'int' is not a class, struct, or union type In file included from /usr/include/c++/4.4/bits/stl_algobase.h:68, from /usr/include/c++/4.4/list:61, from rev.cpp:3: /usr/include/c++/4.4/bits/stl_iterator_base_funcs.h: In function 'void std::advance(_InputIterator&, _Distance) [with _InputIterator = int, _Distance = int]': rev.cpp:89: instantiated from here /usr/include/c++/4.4/bits/stl_iterator_base_funcs.h:171: error: no matching function for call to '__iterator_category(int&)'
ajutor