Borderou de evaluare (job #3291605)

Utilizator Radu_BicliBiclineru Radu Radu_Bicli Data 5 aprilie 2025 10:26:23
Problema Patrate 3 Status done
Runda cex_9 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 '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 = bool; _Alloc = std::allocator<Punct>; iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, 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 = bool; _Alloc = std::allocator<Punct>; iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, std::allocator<Punct> >::const_iterator; key_type = Punct]' main.cpp:46:14: required from here /usr/include/c++/12.2.1/bits/stl_tree.h:2533:40: error: expression cannot be used as a function 2533 | || _M_impl._M_key_compare(__k, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ 2534 | _S_key(__j._M_node))) ? end() : __j; | ~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_tree.h: In instantiation of '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 = Punct; _Val = Punct; _KeyOfValue = std::_Identity<Punct>; _Compare = bool; _Alloc = std::allocator<Punct>; key_type = Punct]': /usr/include/c++/12.2.1/bits/stl_tree.h:2170:4: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = const Punct&; _Key = Punct; _Val = Punct; _KeyOfValue = std::_Identity<Punct>; _Compare = bool; _Alloc = std::allocator<Punct>]' /usr/include/c++/12.2.1/bits/stl_set.h:512:25: 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>::insert(const value_type&) [with _Key = Punct; _Compare = bool; _Alloc = std::allocator<Punct>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, std::allocator<Punct> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<Punct>; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<Punct>, Punct>::rebind<Punct>; typename _Alloc::value_type = Punct; value_type = Punct]' main.cpp:32:12: required from here /usr/include/c++/12.2.1/bits/stl_tree.h:2117:42: error: expression cannot be used as a function 2117 | __comp = _M_impl._M_key_compare(__k, _S_key(__x)); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_tree.h:2128:33: error: expression cannot be used as a function 2128 | if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_tree.h: In instantiation of 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_(_Base_ptr, _Base_ptr, _Arg&&, _NodeGen&) [with _Arg = const Punct&; _NodeGen = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, std::allocator<Punct> >::_Alloc_node; _Key = Punct; _Val = Punct; _KeyOfValue = std::_Identity<Punct>; _Compare = bool; _Alloc = std::allocator<Punct>; iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, std::allocator<Punct> >::iterator; _Base_ptr = std::_Rb_tree_node_base*]': /usr/include/c++/12.2.1/bits/stl_tree.h:2175:26: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = const Punct&; _Key = Punct; _Val = Punct; _KeyOfValue = std::_Identity<Punct>; _Compare = bool; _Alloc = std::allocator<Punct>]' /usr/include/c++/12.2.1/bits/stl_set.h:512:25: 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>::insert(const value_type&) [with _Key = Punct; _Compare = bool; _Alloc = std::allocator<Punct>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, std::allocator<Punct> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<Punct>; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<Punct>, Punct>::rebind<Punct>; typename _Alloc::value_type = Punct; value_type = Punct]' main.cpp:32:12: required from here /usr/include/c++/12.2.1/bits/stl_tree.h:1827:56: error: expression cannot be used as a function 1827 | || _M_impl._M_key_compare(_KeyOfValue()(__v), | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 1828 | _S_key(__p))); | ~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_tree.h: In instantiation of '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 = bool; _Alloc = std::allocator<Punct>; iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, 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 = bool; _Alloc = std::allocator<Punct>; iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, 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 = bool; _Alloc = std::allocator<Punct>; iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, std::allocator<Punct> >::const_iterator; key_type = Punct]' main.cpp:46:14: required from here /usr/include/c++/12.2.1/bits/stl_tree.h:1951:36: error: expression cannot be used as a function 1951 | if (!_M_impl._M_key_compare(_S_key(__x), __k)) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /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 = bool; _Alloc = std::allocator<Punct>; _Const_Link_type = const std::_Rb_tree_node<Punct>*]': /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 = Punct; _Val = Punct; _KeyOfValue = std::_Identity<Punct>; _Compare = bool; _Alloc = std::allocator<Punct>; key_type = Punct]' /usr/include/c++/12.2.1/bits/stl_tree.h:2170:4: required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = const Punct&; _Key = Punct; _Val = Punct; _KeyOfValue = std::_Identity<Punct>; _Compare = bool; _Alloc = std::allocator<Punct>]' /usr/include/c++/12.2.1/bits/stl_set.h:512:25: 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>::insert(const value_type&) [with _Key = Punct; _Compare = bool; _Alloc = std::allocator<Punct>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<Punct, Punct, std::_Identity<Punct>, bool, std::allocator<Punct> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<Punct>; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<Punct>, Punct>::rebind<Punct>; typename _Alloc::value_type = Punct; value_type = Punct]' main.cpp:32:12: required from here /usr/include/c++/12.2.1/bits/stl_tree.h:762:23: error: static assertion failed: comparison object must be invocable with two arguments of key type 762 | static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_tree.h:762:23: note: 'std::__is_invocable<bool&, const Punct&, const Punct&>()' evaluates to false Non zero exit status: 1

Ceva nu functioneaza?