Borderou de evaluare (job #783955)

Utilizator visanrVisan Radu visanr Data 4 septembrie 2012 16:29:34
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void BF()’: user.cpp:68:30: error: no match for ‘operator=’ (operand types are ‘std::list<char>::iterator {aka std::_List_iterator<char>}’ and ‘std::list<int>::iterator {aka std::_List_iterator<int>}’) for(it = G[now.start].begin(); it != G[now.start].end(); ++it) ^ user.cpp:68:30: note: candidates are: In file included from /usr/include/c++/4.8/list:63:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_list.h:125:12: note: std::_List_iterator<char>& std::_List_iterator<char>::operator=(const std::_List_iterator<char>&) struct _List_iterator ^ /usr/include/c++/4.8/bits/stl_list.h:125:12: note: no known conversion for argument 1 from ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ to ‘const std::_List_iterator<char>&’ /usr/include/c++/4.8/bits/stl_list.h:125:12: note: std::_List_iterator<char>& std::_List_iterator<char>::operator=(std::_List_iterator<char>&&) /usr/include/c++/4.8/bits/stl_list.h:125:12: note: no known conversion for argument 1 from ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ to ‘std::_List_iterator<char>&&’ user.cpp:68:57: error: no match for ‘operator!=’ (operand types are ‘std::list<char>::iterator {aka std::_List_iterator<char>}’ and ‘std::list<int>::iterator {aka std::_List_iterator<int>}’) for(it = G[now.start].begin(); it != G[now.start].end(); ++it) ^ user.cpp:68:57: note: candidates are: In file included from /usr/include/c++/4.8/list:63:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_list.h:187:7: note: bool std::_List_iterator<_Tp>::operator!=(const _Self&) const [with _Tp = char; std::_List_iterator<_Tp>::_Self = std::_List_iterator<char>] operator!=(const _Self& __x) const ^ /usr/include/c++/4.8/bits/stl_list.h:187:7: note: no known conversion for argument 1 from ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ to ‘const _Self& {aka const std::_List_iterator<char>&}’ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/list:60, from user.cpp:4: /usr/include/c++/4.8/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/include/c++/4.8/bits/stl_pair.h:227:5: note: template argument deduction/substitution failed: user.cpp:68:77: note: ‘std::list<char>::iterator {aka std::_List_iterator<char>}’ is not derived from ‘const std::pair<_T1, _T2>’ for(it = G[now.start].begin(); it != G[now.start].end(); ++it) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/list:60, from user.cpp:4: /usr/include/c++/4.8/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/include/c++/4.8/bits/stl_iterator.h:303:5: note: template argument deduction/substitution failed: user.cpp:68:77: note: ‘std::list<char>::iterator {aka std::_List_iterator<char>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’ for(it = G[now.start].begin(); it != G[now.start].end(); ++it) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/list:60, from user.cpp:4: /usr/include/c++/4.8/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/include/c++/4.8/bits/stl_iterator.h:353:5: note: template argument deduction/substitution failed:

Ceva nu functioneaza?