F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:62,
                 from .\stdc++.h:152:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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 = Data; _Val = Data; _KeyOfValue = std::_Identity<Data>; _Compare = cmp1; _Alloc = std::allocator<Data>; _Const_Link_type = const std::_Rb_tree_node<Data>*]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_tree.h:1952:36:   required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_lower_bound(_Link_type, _Base_ptr, const _Key&) [with _Key = Data; _Val = Data; _KeyOfValue = std::_Identity<Data>; _Compare = cmp1; _Alloc = std::allocator<Data>; iterator = std::_Rb_tree<Data, Data, std::_Identity<Data>, cmp1, std::allocator<Data> >::iterator; _Link_type = std::_Rb_tree_node<Data>*; _Base_ptr = std::_Rb_tree_node_base*]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_tree.h:1271:30:   required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = Data; _Val = Data; _KeyOfValue = std::_Identity<Data>; _Compare = cmp1; _Alloc = std::allocator<Data>; iterator = std::_Rb_tree<Data, Data, std::_Identity<Data>, cmp1, std::allocator<Data> >::iterator; key_type = Data]'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_multiset.h:812:32:   required from 'std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = Data; _Compare = cmp1; _Alloc = std::allocator<Data>; iterator = std::_Rb_tree<Data, Data, std::_Identity<Data>, cmp1, std::allocator<Data> >::const_iterator; key_type = Data]'
0_0_38779169_29223.cpp:57:23:   required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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&>,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_tree.h:772:15: note: 'std::is_invocable_v<const cmp1&, const Data&, const Data&>' evaluates to false


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-27 01:10:08, Gzip enabled