Borderou de evaluare (job #1748652)
Utilizator | Data | 26 august 2016 15:05:13 | |
---|---|---|---|
Problema | Catun | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:47:28: error: no match for ‘operator==’ (operand types are ‘std::vector<std::pair<int, int> >’ and ‘bool’)
if(v[it.first] == true && dp[it.first] > dp[id] + it.second){
^
user.cpp:47:28: note: candidates are:
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:2:
/usr/include/c++/4.8/bits/stl_pair.h:214: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:214:5: note: template argument deduction/substitution failed:
user.cpp:47:31: note: ‘std::vector<std::pair<int, int> >’ is not derived from ‘const std::pair<_T1, _T2>’
if(v[it.first] == true && dp[it.first] > dp[id] + it.second){
^
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:2:
/usr/include/c++/4.8/bits/stl_iterator.h:291: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:291:5: note: template argument deduction/substitution failed:
user.cpp:47:31: note: ‘std::vector<std::pair<int, int> >’ is not derived from ‘const std::reverse_iterator<_Iterator>’
if(v[it.first] == true && dp[it.first] > dp[id] + it.second){
^
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:2:
/usr/include/c++/4.8/bits/stl_iterator.h:341: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:341:5: note: template argument deduction/substitution failed:
user.cpp:47:31: note: ‘std::vector<std::pair<int, int> >’ is not derived from ‘const std::reverse_iterator<_Iterator>’
if(v[it.first] == true && dp[it.first] > dp[id] + it.second){
^
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:2:
/usr/include/c++/4.8/bits/stl_iterator.h:1031: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:1031:5: note: template argument deduction/substitution failed:
user.cpp:47:31: note: ‘std::vector<std::pair<int, int> >’ is not derived from ‘const std::move_iterator<_Iterator>’
if(v[it.first] == true && dp[it.first] > dp[id] + it.second){
^
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:2:
/usr/include/c++/4.8/bits/stl_iterator.h:1037:5: note: template<class _Iterator> bool std::operator==(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
operator==(const move_iterator<_Iterator>& __x,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !