Borderou de evaluare (job #2326782)
Utilizator | Data | 23 ianuarie 2019 23:09:04 | |
---|---|---|---|
Problema | Sume | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:53:43: error: no match for 'operator==' (operand types are 'std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' and 'int')
if (s.find(a[ind] + a[j]) == 0) stop = true;
~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/6/set:60:0,
from main.cpp:10:
/usr/include/c++/6/bits/stl_tree.h:316:7: note: candidate: 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 _GLIBCXX_NOEXCEPT
^~~~~~~~
/usr/include/c++/6/bits/stl_tree.h:316:7: note: no known conversion for argument 1 from 'int' to 'const _Self& {aka const std::_Rb_tree_const_iterator<int>&}'
In file included from /usr/include/c++/6/utility:70:0,
from /usr/include/c++/6/algorithm:60,
from main.cpp:2:
/usr/include/c++/6/bits/stl_pair.h:435:5: note: candidate: 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++/6/bits/stl_pair.h:435:5: note: template argument deduction/substitution failed:
main.cpp:53:46: note: 'std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::pair<_T1, _T2>'
if (s.find(a[ind] + a[j]) == 0) stop = true;
^
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/algorithm:61,
from main.cpp:2:
/usr/include/c++/6/bits/stl_iterator.h:292:5: note: candidate: 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++/6/bits/stl_iterator.h:292:5: note: template argument deduction/substitution failed:
main.cpp:53:46: note: 'std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::reverse_iterator<_Iterator>'
if (s.find(a[ind] + a[j]) == 0) stop = true;
^
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/algorithm:61,
from main.cpp:2:
/usr/include/c++/6/bits/stl_iterator.h:349:5: note: candidate: 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++/6/bits/stl_iterator.h:349:5: note: template argument deduction/substitution failed:
main.cpp:53:46: note: 'std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::reverse_iterator<_Iterator>'
if (s.find(a[ind] + a[j]) == 0) stop = true;
^
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/algorithm:61,
from main.cpp:2:
/usr/include/c++/6/bits/stl_iterator.h:1113:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
operator==(const move_iterator<_IteratorL>& __x,
^~~~~~~~
/usr/include/c++/6/bits/stl_iterator.h:1113:5: note: template argument deduction/substitution failed:
main.cpp:53:46: note: 'std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' is not derived from 'const std::move_iterator<_IteratorL>'
if (s.find(a[ind] + a[j]) == 0) stop = true;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !