Borderou de evaluare (job #3309074)
| Utilizator | Data | 31 august 2025 20:31:49 | |
|---|---|---|---|
| Problema | Triang | 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/set:60,
from main.cpp:4:
/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 = punct; _Val = punct; _KeyOfValue = std::_Identity<punct>; _Compare = cmp; _Alloc = std::allocator<punct>; _Const_Link_type = const std::_Rb_tree_node<punct>*]':
/usr/include/c++/12.2.1/bits/stl_tree.h:1951: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 = punct; _Val = punct; _KeyOfValue = std::_Identity<punct>; _Compare = cmp; _Alloc = std::allocator<punct>; iterator = std::_Rb_tree<punct, punct, std::_Identity<punct>, cmp, std::allocator<punct> >::iterator; _Link_type = std::_Rb_tree_node<punct>*; _Base_ptr = std::_Rb_tree_node_base*]'
/usr/include/c++/12.2.1/bits/stl_tree.h:2531:36: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::find(const _Key&) [with _Key = punct; _Val = punct; _KeyOfValue = std::_Identity<punct>; _Compare = cmp; _Alloc = std::allocator<punct>; iterator = std::_Rb_tree<punct, punct, std::_Identity<punct>, cmp, std::allocator<punct> >::iterator]'
/usr/include/c++/12.2.1/bits/stl_set.h:795:25: required from 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = punct; _Compare = cmp; _Alloc = std::allocator<punct>; iterator = std::_Rb_tree<punct, punct, std::_Identity<punct>, cmp, std::allocator<punct> >::const_iterator; key_type = punct]'
main.cpp:36:23: 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 punct&, const punct&>' 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 !
