QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#616074 | #9184. Team Coding | jxy2012# | Compile Error | / | / | C++23 | 5.8kb | 2024-10-05 21:57:02 | 2024-10-05 21:57:07 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
In file included from /usr/include/c++/13/map:62, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:152, from answer.code:1: /usr/include/c++/13/bits/stl_tree.h: In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(_Const_Link_type) [with _Key = point; _Val = point; _KeyOfValue = std::_Identity<point>; _Compare = cmp1; _Alloc = std::allocator<point>; _Const_Link_type = const std::_Rb_tree_node<point>*]’: /usr/include/c++/13/bits/stl_tree.h:2118:47: required from ‘std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_unique_pos(const key_type&) [with _Key = point; _Val = point; _KeyOfValue = std::_Identity<point>; _Compare = cmp1; _Alloc = std::allocator<point>; key_type = point]’ /usr/include/c++/13/bits/stl_tree.h:2171:4: required from ‘std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = point; _Key = point; _Val = point; _KeyOfValue = std::_Identity<point>; _Compare = cmp1; _Alloc = std::allocator<point>]’ /usr/include/c++/13/bits/stl_set.h:523:25: required from ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(value_type&&) [with _Key = point; _Compare = cmp1; _Alloc = std::allocator<point>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<point, point, std::_Identity<point>, cmp1, std::allocator<point> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<point>; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<point>, point>::rebind<point>; typename _Alloc::value_type = point; value_type = point]’ answer.code:44:63: required from here /usr/include/c++/13/bits/stl_tree.h:772:15: error: static assertion failed: comparison object must be invocable as const 772 | is_invocable_v<const _Compare&, const _Key&, const _Key&>, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_tree.h:772:15: note: ‘std::is_invocable_v<const cmp1&, const point&, const point&>’ evaluates to false