Borderou de evaluare (job #2745986)

Utilizator jumpthenfallDan Florin jumpthenfall Data 27 aprilie 2021 12:42:11
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/6/ext/hash_set:60:0, from main.cpp:2: /usr/include/c++/6/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp] #warning \ ^~~~~~~ In file included from /usr/include/c++/6/ext/hash_set:64:0, from main.cpp:2: /usr/include/c++/6/backward/hashtable.h: In instantiation of '__gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const key_type&, std::size_t) const [with _Val = long long int; _Key = long long int; _HashFcn = __gnu_cxx::hash<long long int>; _ExtractKey = std::_Identity<long long int>; _EqualKey = std::equal_to<long long int>; _Alloc = std::allocator<long long int>; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type = long unsigned int; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::key_type = long long int; std::size_t = long unsigned int]': /usr/include/c++/6/backward/hashtable.h:601:30: required from '__gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const key_type&) const [with _Val = long long int; _Key = long long int; _HashFcn = __gnu_cxx::hash<long long int>; _ExtractKey = std::_Identity<long long int>; _EqualKey = std::equal_to<long long int>; _Alloc = std::allocator<long long int>; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type = long unsigned int; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::key_type = long long int]' /usr/include/c++/6/backward/hashtable.h:884:43: required from '__gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::erase(const key_type&) [with _Val = long long int; _Key = long long int; _HashFcn = __gnu_cxx::hash<long long int>; _ExtractKey = std::_Identity<long long int>; _EqualKey = std::equal_to<long long int>; _Alloc = std::allocator<long long int>; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::size_type = long unsigned int; __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::key_type = long long int]' /usr/include/c++/6/ext/hash_set:226:32: required from '__gnu_cxx::hash_set<_Value, _HashFcn, _EqualKey, _Alloc>::size_type __gnu_cxx::hash_set<_Value, _HashFcn, _EqualKey, _Alloc>::erase(const key_type&) [with _Value = long long int; _HashFcn = __gnu_cxx::hash<long long int>; _EqualKey = std::equal_to<long long int>; _Alloc = std::allocator<long long int>; __gnu_cxx::hash_set<_Value, _HashFcn, _EqualKey, _Alloc>::size_type = long unsigned int; __gnu_cxx::hash_set<_Value, _HashFcn, _EqualKey, _Alloc>::key_type = long long int]' main.cpp:26:19: required from here /usr/include/c++/6/backward/hashtable.h:609:31: error: no match for call to '(const hasher {aka const __gnu_cxx::hash<long long int>}) (const key_type&)' { return _M_hash(__key) % __n; } Non zero exit status: 1

Ceva nu functioneaza?