QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#377299 | #4071. Galactic Collegiate Programming Contest | ZhangYiDe | Compile Error | / | / | C++17 | 890b | 2024-04-05 12:01:02 | 2024-04-05 12:01:03 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
In file included from /usr/include/c++/13/string:49, from /usr/include/c++/13/bitset:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/extc++.h:32, from answer.code:1: /usr/include/c++/13/bits/stl_function.h: In instantiation of ‘constexpr bool std::less_equal<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = team]’: /usr/include/c++/13/ext/pb_ds/detail/bin_search_tree_/find_fn_imps.hpp:129:28: required from ‘__gnu_pbds::detail::bin_search_tree_set<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::point_iterator __gnu_pbds::detail::bin_search_tree_set<Key, Mapped, Cmp_Fn, Node_And_It_Traits, _Alloc>::find(key_const_reference) [with Key = team; Mapped = __gnu_pbds::null_type; Cmp_Fn = std::less_equal<team>; Node_And_It_Traits = __gnu_pbds::detail::tree_traits<team, __gnu_pbds::null_type, std::less_equal<team>, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >; _Alloc = std::allocator<char>; point_iterator = __gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<team, long unsigned int, std::allocator<char> >*, team, team*, const team*, team&, const team&, true, std::allocator<char> >; key_const_reference = const team&]’ answer.code:22:35: required from here /usr/include/c++/13/bits/stl_function.h:428:20: error: no match for ‘operator<=’ (operand types are ‘const team’ and ‘const team’) 428 | { return __x <= __y; } | ~~~~^~~~~~ In file included from /usr/include/c++/13/bits/stl_algobase.h:64, from /usr/include/c++/13/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51: /usr/include/c++/13/bits/stl_pair.h:854:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator<=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)’ 854 | operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/13/bits/stl_pair.h:854:5: note: template argument deduction/substitution failed: /usr/include/c++/13/bits/stl_function.h:428:20: note: ‘const team’ is not derived from ‘const std::pair<_T1, _T2>’ 428 | { return __x <= __y; } | ~~~~^~~~~~ In file included from /usr/include/c++/13/bits/stl_algobase.h:67: /usr/include/c++/13/bits/stl_iterator.h:476:5: note: candidate: ‘template<class _Iterator> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)’ 476 | operator<=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:476:5: note: template argument deduction/substitution failed: /usr/include/c++/13/bits/stl_function.h:428:20: note: ‘const team’ is not derived from ‘const std::reverse_iterator<_Iterator>’ 428 | { return __x <= __y; } | ~~~~^~~~~~ /usr/include/c++/13/bits/stl_iterator.h:520:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)’ 520 | operator<=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:520:5: note: template argument deduction/substitution failed: /usr/include/c++/13/bits/stl_function.h:428:20: note: ‘const team’ is not derived from ‘const std::reverse_iterator<_Iterator>’ 428 | { return __x <= __y; } | ~~~~^~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1715:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)’ 1715 | operator<=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1715:5: note: template argument deduction/substitution failed: /usr/include/c++/13/bits/stl_function.h:428:20: note: ‘const team’ is not derived from ‘const std::move_iterator<_IteratorL>’ 428 | { return __x <= __y; } | ~~~~^~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1777:5: note: candidate: ‘template<class _Iterator> constexpr bool std::operator<=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)’ 1777 | operator<=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1777:5: note: template argument deduction/substitution failed: /usr/include/c++/13/bits/stl_function.h:428:20: note: ‘const team’ is not derived from ‘const std::move_iterator<_IteratorL>’ 428 | { return __x <= __y; } | ~~~~^~~~~~