Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compilation failed due to following error(s).In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_equals_val<_Value>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Value = const int]’:
- /usr/include/c++/6/bits/stl_algo.h:120:14: required from ‘_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const int>]’
- /usr/include/c++/6/bits/stl_algo.h:161:23: required from ‘_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const int>]’
- /usr/include/c++/6/bits/stl_algo.h:3792:28: required from ‘_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Tp = int]’
- <span class="error_line" onclick="ide.gotoLine('main.cpp',14)">main.cpp:14:92</span>: required from here
- /usr/include/c++/6/bits/predefined_ops.h:199:17: error: no match for ‘operator==’ (operand types are ‘std::vector’ and ‘const int’)
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/stl_iterator.h:859:5: note: candidate: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
- operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
- ^~~~~~~~
- /usr/include/c++/6/bits/stl_iterator.h:859:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const __gnu_cxx::__normal_iterator<_IteratorL, _Container>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/stl_iterator.h:866:5: note: candidate: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
- operator==(const __normal_iterator<_Iterator, _Container>& __lhs,
- ^~~~~~~~
- /usr/include/c++/6/bits/stl_iterator.h:866:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33:0,
- from /usr/include/c++/6/bits/allocator.h:46,
- from /usr/include/c++/6/vector:61,
- from main.cpp:8:
- /usr/include/c++/6/ext/new_allocator.h:139:5: note: candidate: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator<_Tp>&, const __gnu_cxx::new_allocator<_Tp>&)
- operator==(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
- ^~~~~~~~
- /usr/include/c++/6/ext/new_allocator.h:139:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const __gnu_cxx::new_allocator<_Tp>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/vector:64:0,
- from main.cpp:8:
- /usr/include/c++/6/bits/stl_vector.h:1514:5: note: candidate: template bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
- operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
- ^~~~~~~~
- /usr/include/c++/6/bits/stl_vector.h:1514:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: mismatched types ‘const std::vector<_Tp, _Alloc>’ and ‘const int’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/vector:61:0,
- from main.cpp:8:
- /usr/include/c++/6/bits/allocator.h:152:5: note: candidate: template bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_Tp1>&)
- operator==(const allocator<_Tp>&, const allocator<_Tp>&)
- ^~~~~~~~
- /usr/include/c++/6/bits/allocator.h:152:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::allocator<_Tp1>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/vector:61:0,
- from main.cpp:8:
- /usr/include/c++/6/bits/allocator.h:146:5: note: candidate: template bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_T2>&)
- operator==(const allocator<_T1>&, const allocator<_T2>&)
- ^~~~~~~~
- /usr/include/c++/6/bits/allocator.h:146:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::allocator<_Tp1>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/stl_iterator.h:1122:5: note: candidate: template bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
- operator==(const move_iterator<_Iterator>& __x,
- ^~~~~~~~
- /usr/include/c++/6/bits/stl_iterator.h:1122:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::move_iterator<_IteratorL>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/stl_iterator.h:1116:5: note: candidate: template 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:1116:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::move_iterator<_IteratorL>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/stl_iterator.h:352:5: note: candidate: template 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:352:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::reverse_iterator<_Iterator>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/stl_iterator.h:295:5: note: candidate: template 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:295:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::reverse_iterator<_Iterator>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
- In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/stl_pair.h:440:5: note: candidate: template 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:440:5: note: template argument deduction/substitution failed:
- In file included from /usr/include/c++/6/bits/stl_algobase.h:71:0,
- from /usr/include/c++/6/vector:60,
- from main.cpp:8:
- /usr/include/c++/6/bits/predefined_ops.h:199:17: note: ‘std::vector’ is not derived from ‘const std::pair<_T1, _T2>’
- { return *__it == _M_value; }
- ~~~~~~^~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement