Borderou de evaluare (job #3283342)
Utilizator | Data | 9 martie 2025 11:45:06 | |
---|---|---|---|
Problema | Online | 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 = road; _Val = road; _KeyOfValue = std::_Identity<road>; _Compare = comp; _Alloc = std::allocator<road>; _Const_Link_type = const std::_Rb_tree_node<road>*]':
/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 = road; _Val = road; _KeyOfValue = std::_Identity<road>; _Compare = comp; _Alloc = std::allocator<road>; key_type = road]'
/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 = road; _Key = road; _Val = road; _KeyOfValue = std::_Identity<road>; _Compare = comp; _Alloc = std::allocator<road>; iterator = std::_Rb_tree<road, road, std::_Identity<road>, comp, std::allocator<road> >::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 = road; _Compare = comp; _Alloc = std::allocator<road>; iterator = std::_Rb_tree<road, road, std::_Identity<road>, comp, std::allocator<road> >::const_iterator; value_type = road]'
main.cpp:50:17: 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 comp&, const road&, const road&>' 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 !