Borderou de evaluare (job #734206)

Utilizator avatar davidandrei Cinca David Andrei davidandrei IP ascuns
Problemă Geometrie (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 29 sept. 2023 23:29:07 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:34:13: warning: unused variable 'sqd' [-Wunused-variable] 34 | int sqd; | ^~~ main.cpp:69:47: error: use of deleted function 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = std::pair<double, double>; _Tp = int; _Hash = std::hash<std::pair<double, double> >; _Pred = std::equal_to<std::pair<double, double> >; _Alloc = std::allocator<std::pair<const std::pair<double, double>, int> >]' 69 | unordered_map<pair<double,double>,int>mid; | ^~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/unordered_map:47, from main.cpp:14: /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/unordered_map.h:141:7: note: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = std::pair<double, double>; _Tp = int; _Hash = std::hash<std::pair<double, double> >; _Pred = std::equal_to<std::pair<double, double> >; _Alloc = std::allocator<std::pair<const std::pair<double, double>, int> >]' is implicitly deleted because the default definition would be ill-formed: 141 | unordered_map() = default; | ^~~~~~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/bits/unordered_map.h:141:7: error: use of deleted function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::_Hashtable() [with _Key = std::pair<double, double>; _Value = std::pair<const std::pair<double, double>, int>; _Alloc = std::allocator<std::pair<const std::pair<double, double>, int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::pair<double, double> >; _Hash = std::hash<std::pair<double, double> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/unordered_set:46, from main.cpp:13: /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<double, double>; _Value = std::pair<const std::pair<double, double>, int>; _Alloc = std::allocator<std::pair<const std::pair<double, double>, int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::pair<double, double> >; _Hash = std::hash<std::pair<double, double> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, 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<double, double>; _Value = std::pair<const std::pair<double, double>, int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::pair<double, double> >; _Hash = std::hash<std::pair<double, double> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, 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<double, double>; _Value = std::pair<const std::pair<double, double>, int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<std::pair<double, double> >; _Hash = std::hash<std::pair<double, double> >; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, 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<double, double>; _Value = std::pair<const std::pair<double, double>, int>; _ExtractKey = std::__detail::_Select1st; _Hash = std::hash<std::pair<double, double> >; _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<double, double> >]': /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<double, double> >::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/istream:38, from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/fstream:38, 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<double, double> >::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<double, double>, 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<double, double>; 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<double, double>; 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();