Borderou de evaluare (job #738334)

Utilizator avatar Razvan23 Razvan Mosanu Razvan23 IP ascuns
Problemă Spioni1 ( clasa a 6-a ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 15 oct. 2023 17:08:48 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:14:35: error: use of deleted function 'std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set() [with _Value = std::pair<int, int>; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]' 14 | unordered_set<pair<int, int>> spioni; | ^~~~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/unordered_set:47, from main.cpp:3: /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/unordered_set.h:135:7: note: 'std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set() [with _Value = std::pair<int, int>; _Hash = std::hash<std::pair<int, int> >; _Pred = std::equal_to<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]' is implicitly deleted because the default definition would be ill-formed: 135 | unordered_set() = default; | ^~~~~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/unordered_set.h:135:7: error: use of deleted function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_Hashtable() [with _Key = std::pair<int, int>; _Value = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to<std::pair<int, int> >; _Hash = std::hash<std::pair<int, int> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, true, true>]' In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/unordered_set:46: /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable.h:531:7: note: 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_Hashtable() [with _Key = std::pair<int, int>; _Value = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to<std::pair<int, int> >; _Hash = std::hash<std::pair<int, int> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, true, true>]' is implicitly deleted because the default definition would be ill-formed: 531 | _Hashtable() = default; | ^~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable.h:531:7: error: use of deleted function 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>::_Hashtable_base() [with _Key = std::pair<int, int>; _Value = std::pair<int, int>; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to<std::pair<int, int> >; _Hash = std::hash<std::pair<int, int> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, true, true>]' In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable.h:35: /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable_policy.h:1674:7: note: 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>::_Hashtable_base() [with _Key = std::pair<int, int>; _Value = std::pair<int, int>; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to<std::pair<int, int> >; _Hash = std::hash<std::pair<int, int> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, true, true>]' is implicitly deleted because the default definition would be ill-formed: 1674 | _Hashtable_base() = default; | ^~~~~~~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable_policy.h:1674:7: error: use of deleted function 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache_hash_code>::_Hash_code_base() [with _Key = std::pair<int, int>; _Value = std::pair<int, int>; _ExtractKey = std::__detail::_Identity; _Hash = std::hash<std::pair<int, int> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; bool __cache_hash_code = true]' /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable_policy.h: In instantiation of 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<std::pair<int, int> >]': /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable_policy.h:1261:7: required from here /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable_policy.h:1178:49: error: use of deleted function 'std::hash<std::pair<int, int> >::hash()' 1178 | _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } | ^~~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/basic_string.h:4232, from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/string:53, from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/locale_classes.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/ios_base.h:41, from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/ios:42, from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/ostream:38, from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/iostream:39, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/functional_hash.h:102:12: note: 'std::hash<std::pair<int, int> >::hash()' is implicitly deleted because the default definition would be ill-formed: 102 | struct hash : __hash_enum<_Tp> | ^~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/functional_hash.h:102:12: error: no matching function for call to 'std::__hash_enum<std::pair<int, int>, false>::__hash_enum()' /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/functional_hash.h:83:7: note: candidate: 'std::__hash_enum<_Tp, <anonymous> >::__hash_enum(std::__hash_enum<_Tp, <anonymous> >&&) [with _Tp = std::pair<int, int>; bool <anonymous> = false]' 83 | __hash_enum(__hash_enum&&); | ^~~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/functional_hash.h:83:7: note: candidate expects 1 argument, 0 provided /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/functional_hash.h:102:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = std::pair<int, int>; bool <anonymous> = false]' is private within this context 102 | struct hash : __hash_enum<_Tp> | ^~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/functional_hash.h:84:7: note: declared private here 84 | ~__hash_enum(); | ^ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/hashtable_policy.h:1261:7: note: 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache_hash_code>::_Hash_code_base() [with _Key = std::pair<int, int>; _Value = std::pair<int, int>; _ExtractKey = std::__detail::_Identity; _Hash = std::hash<std::pair<int, int> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; bool __cache_hash_code = true]' is implicitly deleted because the default definition would be ill-formed: 1261 | _Hash_code_base() = default; | ^~~~~~~~~~~~~~~