Borderou de evaluare (job #3166165)
Utilizator | Data | 7 noiembrie 2023 19:55:32 | |
---|---|---|---|
Problema | Cerc | 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:10:
/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::pair<double, double>; _Val = std::pair<double, double>; _KeyOfValue = std::_Identity<std::pair<double, double> >; _Compare = PairCompare; _Alloc = std::allocator<std::pair<double, double> >; _Const_Link_type = const std::_Rb_tree_node<std::pair<double, double> >*]':
/usr/include/c++/12.2.1/bits/stl_tree.h:2117:47: 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_unique_pos(const key_type&) [with _Key = std::pair<double, double>; _Val = std::pair<double, double>; _KeyOfValue = std::_Identity<std::pair<double, double> >; _Compare = PairCompare; _Alloc = std::allocator<std::pair<double, double> >; key_type = std::pair<double, double>]'
/usr/include/c++/12.2.1/bits/stl_tree.h:2434:15: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_unique(_Args&& ...) [with _Args = {const std::pair<double, double>&}; _Key = std::pair<double, double>; _Val = std::pair<double, double>; _KeyOfValue = std::_Identity<std::pair<double, double> >; _Compare = PairCompare; _Alloc = std::allocator<std::pair<double, double> >]'
/usr/include/c++/12.2.1/bits/stl_set.h:463:33: required from 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {const std::pair<double, double>&}; _Key = std::pair<double, double>; _Compare = PairCompare; _Alloc = std::allocator<std::pair<double, double> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<std::pair<double, double>, std::pair<double, double>, std::_Identity<std::pair<double, double> >, PairCompare, std::allocator<std::pair<double, double> > >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<std::pair<double, double> >; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<std::pair<double, double> >, std::pair<double, double> >::rebind<std::pair<double, double> >; typename _Alloc::value_type = std::pair<double, double>]'
main.cpp:45:24: 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 PairCompare&, const std::pair<double, double>&, const std::pair<double, double>&>' 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 !