In file included from /usr/include/c++/13/string:49,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from answer.code:1:
/usr/include/c++/13/bits/stl_function.h: In instantiation of ‘constexpr bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = dian]’:
/usr/include/c++/13/bits/predefined_ops.h:196:23: required from ‘bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = __gnu_cxx::__normal_iterator<dian*, std::vector<dian, std::allocator<dian> > >; _Value = dian; _Compare = std::less<dian>]’
/usr/include/c++/13/bits/stl_heap.h:140:48: required from ‘void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<dian*, vector<dian, allocator<dian> > >; _Distance = long int; _Tp = dian; _Compare = __gnu_cxx::__ops::_Iter_comp_val<less<dian> >]’
/usr/include/c++/13/bits/stl_heap.h:216:23: required from ‘void std::push_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<dian*, vector<dian, allocator<dian> > >; _Compare = less<dian>]’
/usr/include/c++/13/bits/stl_queue.h:749:16: required from ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = dian; _Sequence = std::vector<dian, std::allocator<dian> >; _Compare = std::less<dian>; value_type = dian]’
answer.code:32:11: required from here
/usr/include/c++/13/bits/stl_function.h:408:20: error: no match for ‘operator<’ (operand types are ‘const dian’ and ‘const dian’)
408 | { return __x < __y; }
| ~~~~^~~~~
In file included from /usr/include/c++/13/string:48:
/usr/include/c++/13/bits/stl_iterator.h:455:5: note: candidate: ‘template<class _Iterator> bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)’
455 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:455:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/stl_function.h:408:20: note: ‘const dian’ is not derived from ‘const std::reverse_iterator<_Iterator>’
408 | { return __x < __y; }
| ~~~~^~~~~
/usr/include/c++/13/bits/stl_iterator.h:500:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)’
500 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:500:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/stl_function.h:408:20: note: ‘const dian’ is not derived from ‘const std::reverse_iterator<_Iterator>’
408 | { return __x < __y; }
| ~~~~^~~~~
/usr/include/c++/13/bits/stl_iterator.h:1705:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)’
1705 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1705:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/stl_function.h:408:20: note: ‘const dian’ is not derived from ‘const std::move_iterator<_IteratorL>’
408 | { return __x < __y; }
| ~~~~^~~~~
/usr/include/c++/13/bits/stl_iterator.h:1770:5: note: candidate: ‘template<class _Iterator> bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)’
1770 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1770:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/stl_function.h:408:20: note: ‘const dian’ is not derived from ‘const std::move_iterator<_IteratorL>’
408 | { return __x < __y; }
| ~~~~^~~~~