Borderou de evaluare (job #3227840)

Utilizator PVDoriginalPopescu Vladut Daniel PVDoriginal Data 2 mai 2024 23:59:59
Problema Heapuri cu reuniune Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/12.2.1/set:60, from main.cpp:6: /usr/include/c++/12.2.1/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 = std::shared_ptr<SBTree>; _Val = std::shared_ptr<SBTree>; _KeyOfValue = std::_Identity<std::shared_ptr<SBTree> >; _Compare = CompareRanks; _Alloc = std::allocator<std::shared_ptr<SBTree> >; _Const_Link_type = const std::_Rb_tree_node<std::shared_ptr<SBTree> >*]': /usr/include/c++/12.2.1/bits/stl_tree.h:2148:44: 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_equal_pos(const key_type&) [with _Key = std::shared_ptr<SBTree>; _Val = std::shared_ptr<SBTree>; _KeyOfValue = std::_Identity<std::shared_ptr<SBTree> >; _Compare = CompareRanks; _Alloc = std::allocator<std::shared_ptr<SBTree> >; key_type = std::shared_ptr<SBTree>]' /usr/include/c++/12.2.1/bits/stl_tree.h:2197:4: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_equal(_Arg&&) [with _Arg = const std::shared_ptr<SBTree>&; _Key = std::shared_ptr<SBTree>; _Val = std::shared_ptr<SBTree>; _KeyOfValue = std::_Identity<std::shared_ptr<SBTree> >; _Compare = CompareRanks; _Alloc = std::allocator<std::shared_ptr<SBTree> >; iterator = std::_Rb_tree<std::shared_ptr<SBTree>, std::shared_ptr<SBTree>, std::_Identity<std::shared_ptr<SBTree> >, CompareRanks, std::allocator<std::shared_ptr<SBTree> > >::iterator]' /usr/include/c++/12.2.1/bits/stl_multiset.h:504:36: required from 'std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::shared_ptr<SBTree>; _Compare = CompareRanks; _Alloc = std::allocator<std::shared_ptr<SBTree> >; iterator = std::_Rb_tree<std::shared_ptr<SBTree>, std::shared_ptr<SBTree>, std::_Identity<std::shared_ptr<SBTree> >, CompareRanks, std::allocator<std::shared_ptr<SBTree> > >::const_iterator; value_type = std::shared_ptr<SBTree>]' main.cpp:86:29: required from here /usr/include/c++/12.2.1/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const 770 | is_invocable_v<const _Compare&, const _Key&, const _Key&>, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_tree.h:770:15: note: 'std::is_invocable_v<const CompareRanks&, const std::shared_ptr<SBTree>&, const std::shared_ptr<SBTree>&>' evaluates to false Non zero exit status: 1

Ceva nu functioneaza?