Borderou de evaluare (job #1425764)
Utilizator | Data | 27 aprilie 2015 23:32:37 | |
---|---|---|---|
Problema | Parcele2 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void rezolva()’:
user.cpp:47:59: error: conversion from ‘std::unordered_set<Copac*, my_hash>::iterator {aka std::__detail::_Node_iterator<Copac*, true, true>}’ to non-scalar type ‘std::unordered_set<Copac*>::iterator {aka std::__detail::_Node_iterator<Copac*, true, false>}’ requested
for(unordered_set<Copac*>::iterator it = copaci.begin(); it!=copaci.end(); ++it)
^
user.cpp:47:64: error: no match for ‘operator!=’ (operand types are ‘std::unordered_set<Copac*>::iterator {aka std::__detail::_Node_iterator<Copac*, true, false>}’ and ‘std::unordered_set<Copac*, my_hash>::iterator {aka std::__detail::_Node_iterator<Copac*, true, true>}’)
for(unordered_set<Copac*>::iterator it = copaci.begin(); it!=copaci.end(); ++it)
^
user.cpp:47:64: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/deque:60,
from /usr/include/c++/4.8/queue:60,
from user.cpp:3:
/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:47:77: note: ‘std::unordered_set<Copac*>::iterator {aka std::__detail::_Node_iterator<Copac*, true, false>}’ is not derived from ‘const std::pair<_T1, _T2>’
for(unordered_set<Copac*>::iterator it = copaci.begin(); it!=copaci.end(); ++it)
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/deque:60,
from /usr/include/c++/4.8/queue:60,
from user.cpp:3:
/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:47:77: note: ‘std::unordered_set<Copac*>::iterator {aka std::__detail::_Node_iterator<Copac*, true, false>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’
for(unordered_set<Copac*>::iterator it = copaci.begin(); it!=copaci.end(); ++it)
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/deque:60,
from /usr/include/c++/4.8/queue:60,
from user.cpp:3:
/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:47:77: note: ‘std::unordered_set<Copac*>::iterator {aka std::__detail::_Node_iterator<Copac*, true, false>}’ is not derived from ‘const std::reverse_iterator<_Iterator>’
for(unordered_set<Copac*>::iterator it = copaci.begin(); it!=copaci.end(); ++it)
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
from /usr/include/c++/4.8/deque:60,
from /usr/include/c++/4.8/queue:60,
from user.cpp:3:
/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,
^
/usr/include/c++/4.8/bits/stl_iterator.h:1043:5: note: template argument deduction/substitution failed:
user.cpp:47:77: note: ‘std::unordered_set<Copac*>::iterator {aka std::__detail::_Node_iterator<Copac*, true, false>}’ is not derived from ‘const std::move_iterator<_Iterator>’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !