Borderou de evaluare (job #3206380)
Utilizator | Data | 22 februarie 2024 15:45:42 | |
---|---|---|---|
Problema | Padure | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/12.2.1/map:60,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:81,
from main.cpp:1:
/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 = Edges; _Val = Edges; _KeyOfValue = std::_Identity<Edges>; _Compare = cmp; _Alloc = std::allocator<Edges>; _Const_Link_type = const std::_Rb_tree_node<Edges>*]':
/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 = Edges; _Val = Edges; _KeyOfValue = std::_Identity<Edges>; _Compare = cmp; _Alloc = std::allocator<Edges>; key_type = Edges]'
/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 = Edges; _Key = Edges; _Val = Edges; _KeyOfValue = std::_Identity<Edges>; _Compare = cmp; _Alloc = std::allocator<Edges>; iterator = std::_Rb_tree<Edges, Edges, std::_Identity<Edges>, cmp, std::allocator<Edges> >::iterator]'
/usr/include/c++/12.2.1/bits/stl_multiset.h:509:36: required from 'std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(value_type&&) [with _Key = Edges; _Compare = cmp; _Alloc = std::allocator<Edges>; iterator = std::_Rb_tree<Edges, Edges, std::_Identity<Edges>, cmp, std::allocator<Edges> >::const_iterator; value_type = Edges]'
main.cpp:29:13: 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 cmp&, const Edges&, const Edges&>' evaluates to false
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !