Borderou de evaluare (job #1438533)

Utilizator zpaePopescu Andreea zpae Data 20 mai 2015 10:39:50
Problema Ciclu Eulerian Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:55:22: error: no match for ‘operator==’ (operand types are ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ and ‘int’) if(it==x) ^ user.cpp:55:22: note: candidates are: In file included from /usr/include/c++/4.8/list:63:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_list.h:183:7: note: bool std::_List_iterator<_Tp>::operator==(const _Self&) const [with _Tp = int; std::_List_iterator<_Tp>::_Self = std::_List_iterator<int>] operator==(const _Self& __x) const ^ /usr/include/c++/4.8/bits/stl_list.h:183:7: note: no known conversion for argument 1 from ‘int’ to ‘const _Self& {aka const std::_List_iterator<int>&}’ In file included from /usr/include/c++/4.8/deque:64:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_deque.h:1957:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::deque<_Tp, _Alloc>&, const std::deque<_Tp, _Alloc>&) operator==(const deque<_Tp, _Alloc>& __x, ^ /usr/include/c++/4.8/bits/stl_deque.h:1957:5: note: template argument deduction/substitution failed: user.cpp:55:24: note: ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ is not derived from ‘const std::deque<_Tp, _Alloc>’ if(it==x) ^ In file included from /usr/include/c++/4.8/deque:64:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_deque.h:254:5: note: template<class _Tp, class _RefL, class _PtrL, class _RefR, class _PtrR> bool std::operator==(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _RefR, _PtrR>&) operator==(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x, ^ /usr/include/c++/4.8/bits/stl_deque.h:254:5: note: template argument deduction/substitution failed: user.cpp:55:24: note: ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ is not derived from ‘const std::_Deque_iterator<_Tp, _Ref, _Ptr>’ if(it==x) ^ In file included from /usr/include/c++/4.8/deque:64:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_deque.h:247:5: note: template<class _Tp, class _Ref, class _Ptr> bool std::operator==(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&) operator==(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x, ^ /usr/include/c++/4.8/bits/stl_deque.h:247:5: note: template argument deduction/substitution failed: user.cpp:55:24: note: ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ is not derived from ‘const std::_Deque_iterator<_Tp, _Ref, _Ptr>’ if(it==x) ^ In file included from /usr/include/c++/4.8/list:63:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_list.h:1602:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::list<_Tp, _Alloc>&, const std::list<_Tp, _Alloc>&) operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) ^ /usr/include/c++/4.8/bits/stl_list.h:1602:5: note: template argument deduction/substitution failed: user.cpp:55:24: note: ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ is not derived from ‘const std::list<_Tp, _Alloc>’ if(it==x) ^ In file included from /usr/include/c++/4.8/list:63:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_list.h:276:5: note: template<class _Val> bool std::operator==(const std::_List_iterator<_Tp>&, const std::_List_const_iterator<_Val>&)

Ceva nu functioneaza?