Borderou de evaluare (job #984564)

Utilizator danalex97Dan H Alexandru danalex97 Data 14 august 2013 19:55:44
Problema Tester Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Make_cycle(int)’: user.cpp:26:22: error: no match for ‘operator!=’ (operand types are ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ and ‘std::list<short int>::iterator {aka std::_List_iterator<short int>}’) while ( it[node] != V[node].end() ) ^ user.cpp:26:22: note: candidates are: In file included from /usr/local/include/c++/4.8.0/list:63:0, from user.cpp:5: /usr/local/include/c++/4.8.0/bits/stl_list.h:187: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/local/include/c++/4.8.0/bits/stl_list.h:187:7: note: no known conversion for argument 1 from ‘std::list<short int>::iterator {aka std::_List_iterator<short int>}’ to ‘const _Self& {aka const std::_List_iterator<int>&}’ In file included from /usr/local/include/c++/4.8.0/utility:70:0, from /usr/local/include/c++/4.8.0/algorithm:60, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/stl_pair.h:227:5: note: template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/local/include/c++/4.8.0/bits/stl_pair.h:227:5: note: template argument deduction/substitution failed: user.cpp:26:37: note: ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ is not derived from ‘const std::pair<_T1, _T2>’ while ( it[node] != V[node].end() ) ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:67:0, from /usr/local/include/c++/4.8.0/algorithm:61, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/stl_iterator.h:303:5: note: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator!=(const reverse_iterator<_Iterator>& __x, ^ /usr/local/include/c++/4.8.0/bits/stl_iterator.h:303:5: note: template argument deduction/substitution failed: user.cpp:26:37: note: ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’ while ( it[node] != V[node].end() ) ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:67:0, from /usr/local/include/c++/4.8.0/algorithm:61, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/stl_iterator.h:353:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator!=(const reverse_iterator<_IteratorL>& __x, ^ /usr/local/include/c++/4.8.0/bits/stl_iterator.h:353:5: note: template argument deduction/substitution failed: user.cpp:26:37: note: ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’ while ( it[node] != V[node].end() ) ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:67:0, from /usr/local/include/c++/4.8.0/algorithm:61, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/stl_iterator.h:1043:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator!=(const move_iterator<_IteratorL>& __x, ^ /usr/local/include/c++/4.8.0/bits/stl_iterator.h:1043:5: note: template argument deduction/substitution failed: user.cpp:26:37: note: ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ is not derived from ‘const std::move_iterator<_Iterator>’ while ( it[node] != V[node].end() )

Ceva nu functioneaza?