Borderou de evaluare (job #1408412)

Utilizator GloryGloryManUtdWayne Mark Rooney GloryGloryManUtd Data 30 martie 2015 00:30:06
Problema Nk Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int solve()’: user.cpp:50:57: error: conversion from ‘std::unordered_set<int>::iterator {aka std::__detail::_Node_iterator<int, true, false>}’ to non-scalar type ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ requested for(set < int > :: iterator it = A[k].begin(); it != A[k].end(); ++it) { ^ user.cpp:50:63: error: no match for ‘operator!=’ (operand types are ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ and ‘std::unordered_set<int>::iterator {aka std::__detail::_Node_iterator<int, true, false>}’) for(set < int > :: iterator it = A[k].begin(); it != A[k].end(); ++it) { ^ user.cpp:50:63: note: candidates are: In file included from /usr/include/c++/4.8/map:60:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_tree.h:302:7: note: bool std::_Rb_tree_const_iterator<_Tp>::operator!=(const _Self&) const [with _Tp = int; std::_Rb_tree_const_iterator<_Tp>::_Self = std::_Rb_tree_const_iterator<int>] operator!=(const _Self& __x) const ^ /usr/include/c++/4.8/bits/stl_tree.h:302:7: note: no known conversion for argument 1 from ‘std::unordered_set<int>::iterator {aka std::__detail::_Node_iterator<int, true, false>}’ to ‘const _Self& {aka const std::_Rb_tree_const_iterator<int>&}’ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/vector:60, from user.cpp:1: /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:50:75: note: ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ is not derived from ‘const std::pair<_T1, _T2>’ for(set < int > :: iterator it = A[k].begin(); it != A[k].end(); ++it) { ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/vector:60, from user.cpp:1: /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:50:75: note: ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’ for(set < int > :: iterator it = A[k].begin(); it != A[k].end(); ++it) { ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/vector:60, from user.cpp:1: /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: user.cpp:50:75: note: ‘std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’ for(set < int > :: iterator it = A[k].begin(); it != A[k].end(); ++it) { ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/vector:60, from user.cpp:1: /usr/include/c++/4.8/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, ^

Ceva nu functioneaza?