0_0_25556040_25412.cpp:12:34: error: expected ',' or '...' before '>' token
friend bool operator < (State a > State b)
^
0_0_25556040_25412.cpp:12:43: error: 'bool operator<(State)' must take exactly two arguments
friend bool operator < (State a > State b)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:63:0,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h: In instantiation of 'bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = State]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:141:37: required from 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = __gnu_cxx::__normal_iterator<State*, std::vector<State, std::allocator<State> > >; _Value = State; _Compare = std::less<State>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:129:76: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<State*, std::vector<State, std::allocator<State> > >; _Distance = long long int; _Tp = State; _Compare = __gnu_cxx::__ops::_Iter_comp_val<std::less<State> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:201:51: required from 'void std::push_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<State*, std::vector<State, std::allocator<State> > >; _Compare = std::less<State>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:502:41: required from 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = State; _Sequence = std::vector<State, std::allocator<State> >; _Compare = std::less<State>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = State]'
0_0_25556040_25412.cpp:24:12: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: error: no match for 'operator<' (operand types are 'const State' and 'const State')
{ return __x < __y; }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:220: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)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:63:0,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: note: 'const State' is not derived from 'const std::pair<_T1, _T2>'
{ return __x < __y; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:298:5: note: template<class _Iterator> bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator<(const reverse_iterator<_Iterator>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:298:5: note: template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:63:0,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: note: 'const State' is not derived from 'const std::reverse_iterator<_Iterator>'
{ return __x < __y; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:348: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,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:348:5: note: template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:63:0,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: note: 'const State' is not derived from 'const std::reverse_iterator<_Iterator>'
{ return __x < __y; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1072: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,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1072:5: note: template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:63:0,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: note: 'const State' is not derived from 'const std::move_iterator<_Iterator>'
{ return __x < __y; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:60,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1078:5: note: template<class _Iterator> bool std::operator<(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
operator<(const move_iterator<_Iterator>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1078:5: note: template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:63:0,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: note: 'const State' is not derived from 'const std::move_iterator<_Iterator>'
{ return __x < __y; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:277:5: note: template<class _Tp, class _Ref, class _Ptr> bool std::operator<(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&)
operator<(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:277:5: note: template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:63:0,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: note: 'const State' is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
{ return __x < __y; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:285:5: note: template<class _Tp, class _RefL, class _PtrL, class _RefR, class _PtrR> bool std::operator<(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _RefR, _PtrR>&)
operator<(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:285:5: note: template argument deduction/substitution failed:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:63:0,
from 0_0_25556040_25412.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: note: 'const State' is not derive
|