In file included from /usr/include/c++/13/bits/stl_algobase.h:71,
from /usr/include/c++/13/string:51,
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 candies.cpp:1:
/usr/include/c++/13/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Val_less_iter::operator()(_Value&, _Iterator) const [with _Value = const std::pair<int, std::pair<long long int, long long int> >; _Iterator = __gnu_cxx::__normal_iterator<std::pair<long long int, std::pair<long long int, long long int> >*, std::vector<std::pair<long long int, std::pair<long long int, long long int> > > >]':
/usr/include/c++/13/bits/stl_algo.h:2035:14: required from 'constexpr _ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator<pair<long long int, pair<long long int, long long int> >*, vector<pair<long long int, pair<long long int, long long int> > > >; _Tp = pair<int, pair<long long int, long long int> >; _Compare = __gnu_cxx::__ops::_Val_less_iter]'
/usr/include/c++/13/bits/stl_algo.h:2070:32: required from 'constexpr _FIter std::upper_bound(_FIter, _FIter, const _Tp&) [with _FIter = __gnu_cxx::__normal_iterator<pair<long long int, pair<long long int, long long int> >*, vector<pair<long long int, pair<long long int, long long int> > > >; _Tp = pair<int, pair<long long int, long long int> >]'
candies.cpp:158:29: required from here
/usr/include/c++/13/bits/predefined_ops.h:98:22: error: no match for 'operator<' (operand types are 'const std::pair<int, std::pair<long long int, long long int> >' and 'std::pair<long long int, std::pair<long long int, long long int> >')
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/13/string:48:
/usr/include/c++/13/bits/stl_iterator.h:1189:5: note: candidate: 'template<class _IteratorL, class _IteratorR, class _Container> constexpr std::__detail::__synth3way_t<_IteratorR, _IteratorL> __gnu_cxx::operator<=>(const __normal_iterator<_IteratorL, _Container>&, const __normal_iterator<_IteratorR, _Container>&)' (reversed)
1189 | operator<=>(const __normal_iterator<_IteratorL, _Container>& __lhs,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1189:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'std::pair<long long int, std::pair<long long int, long long int> >' is not derived from 'const __gnu_cxx::__normal_iterator<_IteratorL, _Container>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:583:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&)' (reversed)
583 | operator<=>(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:583:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'std::pair<long long int, std::pair<long long int, long long int> >' is not derived from 'const std::reverse_iterator<_IteratorL>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1690:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' (reversed)
1690 | operator<=>(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1690:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'std::pair<long long int, std::pair<long long int, long long int> >' is not derived from 'const std::move_iterator<_IteratorL>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/13/bits/basic_string.h:47,
from /usr/include/c++/13/string:54:
/usr/include/c++/13/string_view:633:5: note: candidate: 'template<class _CharT, class _Traits> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' (reversed)
633 | operator<=>(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/13/string_view:633:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'std::pair<long long int, std::pair<long long int, long long int> >' is not derived from 'std::basic_string_view<_CharT, _Traits>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/basic_string.h:3760:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' (reversed)
3760 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/13/bits/basic_string.h:3760:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'std::pair<long long int, std::pair<long long int, long long int> >' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/13/bits/uses_allocator_args.h:38,
from /usr/include/c++/13/bits/memory_resource.h:41,
from /usr/include/c++/13/string:58:
/usr/include/c++/13/tuple:1952:5: note: candidate: 'template<class ... _Tps, class ... _Ups> constexpr std::common_comparison_category_t<decltype (std::__detail::__synth3way(declval<_Tps&>(), declval<_Ups&>()))...> std::operator<=>(const tuple<_UTypes ...>&, const tuple<_UTypes ...>&)' (reversed)
1952 | operator<=>(const tuple<_Tps...>& __t, const tuple<_Ups...>& __u)
| ^~~~~~~~
/usr/include/c++/13/tuple:1952:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'std::pair<long long int, std::pair<long long int, long long int> >' is not derived from 'const std::tuple<_UTypes ...>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1208:5: note: candidate: 'template<class _Iterator, class _Container> constexpr std::__detail::__synth3way_t<_Iterator> __gnu_cxx::operator<=>(const __normal_iterator<_Iterator, _Container>&, const __normal_iterator<_Iterator, _Container>&)' (rewritten)
1208 | operator<=>(const __normal_iterator<_Iterator, _Container>& __lhs,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1208:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const __gnu_cxx::__normal_iterator<_Iterator, _Container>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:601:5: note: candidate: 'template<class _Iterator> requires three_way_comparable<_Iterator, std::partial_ordering> constexpr std::compare_three_way_result_t<_Iterator, _Iterator> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorL>&)' (rewritten)
601 | operator<=>(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:601:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::reverse_iterator<_IteratorL>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1756:5: note: candidate: 'template<class _Iterator> requires three_way_comparable<_Iterator, std::partial_ordering> constexpr std::compare_three_way_result_t<_Iterator, _Iterator> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' (rewritten)
1756 | operator<=>(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1756:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::move_iterator<_IteratorL>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/13/bits/stl_algobase.h:64:
/usr/include/c++/13/bits/stl_pair.h:819:5: note: candidate: 'template<class _T1, class _T2> constexpr std::common_comparison_category_t<decltype (std::__detail::__synth3way(declval<_Iterator&>(), declval<_Iterator&>())), decltype (std::__detail::__synth3way(declval<_T2&>(), declval<_T2&>()))> std::operator<=>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' (rewritten)
819 | operator<=>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:819:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: deduced conflicting types for parameter '_T1' ('int' and 'long long int')
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/string_view:625:5: note: candidate: 'template<class _CharT, class _Traits> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' (rewritten)
625 | operator<=>(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/13/string_view:625:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'std::pair<int, std::pair<long long int, long long int> >' is not derived from 'std::basic_string_view<_CharT, _Traits>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/basic_string.h:3745:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' (rewritten)
3745 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/13/bits/basic_string.h:3745:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/13/vector:66,
from candies.cpp:2:
/usr/include/c++/13/bits/stl_vector.h:2059:5: note: candidate: 'template<class _Tp, class _Alloc> constexpr std::__detail::__synth3way_t<_Iterator> std::operator<=>(const vector<_Tp, _Alloc>&, const vector<_Tp, _Alloc>&)' (rewritten)
2059 | operator<=>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_vector.h:2059:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::vector<_Tp, _Alloc>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/13/deque:66,
from /usr/include/c++/13/queue:62,
from candies.cpp:4:
/usr/include/c++/13/bits/stl_deque.h:2309:5: note: candidate: 'template<class _Tp, class _Alloc> std::__detail::__synth3way_t<_Iterator> std::operator<=>(const deque<_Tp, _Alloc>&, const deque<_Tp, _Alloc>&)' (rewritten)
2309 | operator<=>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_deque.h:2309:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::deque<_Tp, _Alloc>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/13/queue:66:
/usr/include/c++/13/bits/stl_queue.h:434:5: note: candidate: 'template<class _Tp, class _Seq> requires three_way_comparable<_Seq, std::partial_ordering> std::compare_three_way_result_t<_Seq> std::operator<=>(const queue<_Tp, _Seq>&, const queue<_Tp, _Seq>&)' (rewritten)
434 | operator<=>(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_queue.h:434:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::queue<_Tp, _Seq>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
In file included from /usr/include/c++/13/bits/ios_base.h:46:
/usr/include/c++/13/system_error:316:3: note: candidate: 'std::strong_ordering std::operator<=>(const error_code&, const error_code&)' (rewritten)
316 | operator<=>(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/13/system_error:316:33: note: no known conversion for argument 1 from 'const std::pair<int, std::pair<long long int, long long int> >' to 'const std::error_code&'
316 | operator<=>(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/13/system_error:498:3: note: candidate: 'std::strong_ordering std::operator<=>(const error_condition&, const error_condition&)' (rewritten)
498 | operator<=>(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/13/system_error:498:38: note: no known conversion for argument 1 from 'const std::pair<int, std::pair<long long int, long long int> >' to 'const std::error_condition&'
498 | operator<=>(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/13/bits/stl_iterator.h:550:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&) requires requires{{std::operator<::__x->base() > std::operator<::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}'
550 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:550:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::reverse_iterator<_IteratorL>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1705:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&) requires requires{{std::operator<::__x->base() < std::operator<::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}'
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/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::move_iterator<_IteratorL>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~
/usr/include/c++/13/bits/stl_queue.h:399:5: note: candidate: 'template<class _Tp, class _Seq> bool std::operator<(const queue<_Tp, _Seq>&, const queue<_Tp, _Seq>&)'
399 | operator<(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y)
| ^~~~~~~~
/usr/include/c++/13/bits/stl_queue.h:399:5: note: template argument deduction/substitution failed:
/usr/include/c++/13/bits/predefined_ops.h:98:22: note: 'const std::pair<int, std::pair<long long int, long long int> >' is not derived from 'const std::queue<_Tp, _Seq>'
98 | { return __val < *__it; }
| ~~~~~~^~~~~~~