Author
anonymous
over 5 years ago
Language
C++
Compiler
gcc HEAD 10.0.0 20191217 (experimental)
Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic
Author
anonymous
over 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:7:54: warning: variable 'it' set but not used [-Wunused-but-set-variable]
7 | std::vector< std::vector <int> >::const_iterator it = std::find( v.begin(), v.end(), a );
| ^~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h: In instantiation of 'constexpr 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]':
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algo.h:123:14: required from 'constexpr _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>]'
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algo.h:165:23: required from 'constexpr _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>]'
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algo.h:4052:28: required from 'constexpr _IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > >; _Tp = int]'
prog.cc:7:92: required from here
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: error: no match for 'operator==' (operand types are 'std::vector<int>' and 'const int')
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:919:5: note: candidate: 'template<class _IteratorL, class _IteratorR, class _Container> constexpr bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)' (reversed)
919 | operator==(const __normal_iterator<_IteratorL, _Container>& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:919:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:372:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)' (reversed)
372 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:372:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::reverse_iterator<_Iterator>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:1278:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)' (reversed)
1278 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:1278:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:64,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/allocator.h:208:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const std::allocator<_Up>&, const std::allocator<_T2>&)' (reversed)
208 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/allocator.h:208:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::allocator<_Up>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:54,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1389:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const std::tuple<_Tps ...>&, const std::tuple<_UTypes ...>&)' (reversed)
1389 | operator==(const tuple<_TElements...>& __t,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1389:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::tuple<_Tps ...>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:59,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/std_function.h:680:5: note: candidate: 'template<class _Res, class ... _Args> bool std::operator==(const std::function<_Res(_ArgTypes ...)>&, std::nullptr_t)' (reversed)
680 | operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/std_function.h:680:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::function<_Res(_ArgTypes ...)>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:59,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/std_function.h:686:5: note: candidate: 'template<class _Res, class ... _Args> bool std::operator==(std::nullptr_t, const std::function<_Res(_ArgTypes ...)>&)' (reversed)
686 | operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/std_function.h:686:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::function<_Res(_ArgTypes ...)>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/node_handle.h:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/hashtable.h:37,
from /opt/wandbox/gcc-head/include/c++/10.0.0/unordered_map:46,
from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:61,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:982:5: note: candidate: 'template<class _Tp, class _Up> constexpr std::__optional_relop_t<decltype ((declval<_Tp>() == declval<_Up>()))> std::operator==(const std::optional<_Tp>&, const std::optional<_Up>&)' (reversed)
982 | operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:982:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::optional<_Tp>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/node_handle.h:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/hashtable.h:37,
from /opt/wandbox/gcc-head/include/c++/10.0.0/unordered_map:46,
from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:61,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:1033:5: note: candidate: 'template<class _Tp> constexpr bool std::operator==(const std::optional<_Tp>&, std::nullopt_t)' (reversed)
1033 | operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:1033:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::optional<_Tp>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/node_handle.h:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/hashtable.h:37,
from /opt/wandbox/gcc-head/include/c++/10.0.0/unordered_map:46,
from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:61,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:1038:5: note: candidate: 'template<class _Tp> constexpr bool std::operator==(std::nullopt_t, const std::optional<_Tp>&)' (reversed)
1038 | operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:1038:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::optional<_Tp>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/node_handle.h:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/hashtable.h:37,
from /opt/wandbox/gcc-head/include/c++/10.0.0/unordered_map:46,
from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:61,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:1094:5: note: candidate: 'template<class _Tp, class _Up> constexpr std::__optional_relop_t<decltype ((declval<_Tp>() == declval<_Up>()))> std::operator==(const std::optional<_Tp>&, const _Up&)' (reversed)
1094 | operator==(const optional<_Tp>& __lhs, const _Up& __rhs)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:1094:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::optional<_Tp>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/node_handle.h:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/hashtable.h:37,
from /opt/wandbox/gcc-head/include/c++/10.0.0/unordered_map:46,
from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:61,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:1100:5: note: candidate: 'template<class _Tp, class _Up> constexpr std::__optional_relop_t<decltype ((declval<_Up>() == declval<_Tp>()))> std::operator==(const _Up&, const std::optional<_Tp>&)' (reversed)
1100 | operator==(const _Up& __lhs, const optional<_Tp>& __rhs)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/optional:1100:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::optional<_Tp>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/allocator.h:46,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:64,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/ext/new_allocator.h:172:2: note: candidate: 'template<class _Up> constexpr bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator<int>&, const __gnu_cxx::new_allocator<_Tp>&)' (reversed)
172 | operator==(const new_allocator&, const new_allocator<_Up>&)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/ext/new_allocator.h:172:2: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const __gnu_cxx::new_allocator<_Tp>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:927:5: note: candidate: 'template<class _Iterator, class _Container> constexpr bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)'
927 | operator==(const __normal_iterator<_Iterator, _Container>& __lhs,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:927:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:64,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_pair.h:465:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)'
465 | operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_pair.h:465:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::pair<_T1, _T2>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:334:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)'
334 | operator==(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:334:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::reverse_iterator<_Iterator>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:67,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:1284:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator==(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)'
1284 | operator==(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_iterator.h:1284:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::move_iterator<_IteratorL>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:67,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_vector.h:1889:5: note: candidate: 'template<class _Tp, class _Alloc> bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)'
1889 | operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_vector.h:1889:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: mismatched types 'const std::vector<_Tp, _Alloc>' and 'const int'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/tuple:39,
from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:54,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/array:253:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr bool std::operator==(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&)'
253 | operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/array:253:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::array<_Tp, _Nm>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/unordered_map:47,
from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:61,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/unordered_map.h:2091:5: note: candidate: 'template<class _Key1, class _Tp1, class _Hash1, class _Pred1, class _Alloc1> bool std::operator==(const std::unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, const std::unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&)'
2091 | operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/unordered_map.h:2091:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/unordered_map:47,
from /opt/wandbox/gcc-head/include/c++/10.0.0/functional:61,
from /opt/wandbox/gcc-head/include/c++/10.0.0/pstl/glue_algorithm_defs.h:13,
from /opt/wandbox/gcc-head/include/c++/10.0.0/algorithm:71,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/unordered_map.h:2103:5: note: candidate: 'template<class _Key1, class _Tp1, class _Hash1, class _Pred1, class _Alloc1> bool std::operator==(const std::unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, const std::unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&)'
2103 | operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/unordered_map.h:2103:5: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/bits/stl_algobase.h:71,
from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/predefined_ops.h:268:17: note: 'std::vector<int>' is not derived from 'const std::unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>'
268 | { return *__it == _M_value; }
| ~~~~~~^~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/vector:64,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/allocator.h:196:7: note: candidate: 'constexpr bool std::operator==(const std::allocator<int>&, const std::allocator<int>&)'
196 | operator==(const allocator&, const allocator&) _GLIBCXX_NOTHROW
| ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/allocator.h:196:18: note: no known conversion for argument 1 from 'std::vector<int>' to 'const std::allocator<int>&'
196 | operator==(const allocator&, const allocator&) _GLIBCXX_NOTHROW
| ^~~~~~~~~~~~~~~~
Exit Code:
1