Borderou de evaluare (job #2895920)
Utilizator | Data | 29 aprilie 2022 16:46:40 | |
---|---|---|---|
Problema | Pariuri | 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++/10/bits/hashtable.h:35,
from /usr/include/c++/10/unordered_map:46,
from main.cpp:2:
/usr/include/c++/10/bits/hashtable_policy.h: In instantiation of 'void std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_insert_range(_InputIterator, _InputIterator, const _NodeGetter&, std::true_type) [with _InputIterator = int; _NodeGetter = std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::pair<const int, int>, false> > >; _Key = int; _Value = std::pair<const int, int>; _Alloc = std::allocator<std::pair<const int, int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<int>; _H1 = std::hash<int>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>; std::true_type = std::integral_constant<bool, true>]':
/usr/include/c++/10/bits/hashtable_policy.h:861:26: required from 'void std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::insert(_InputIterator, _InputIterator) [with _InputIterator = int; _Key = int; _Value = std::pair<const int, int>; _Alloc = std::allocator<std::pair<const int, int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<int>; _H1 = std::hash<int>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>]'
/usr/include/c++/10/bits/unordered_map.h:645:15: required from 'void std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = int; _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
main.cpp:22:41: required from here
/usr/include/c++/10/bits/hashtable_policy.h:876:45: error: no matching function for call to '__distance_fw(int&, int&)'
876 | size_type __n_elt = __detail::__distance_fw(__first, __last);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/hashtable_policy.h:64:5: note: candidate: 'template<class _Iterator> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__detail::__distance_fw(_Iterator, _Iterator, std::input_iterator_tag)'
64 | __distance_fw(_Iterator __first, _Iterator __last,
| ^~~~~~~~~~~~~
/usr/include/c++/10/bits/hashtable_policy.h:64:5: note: template argument deduction/substitution failed:
/usr/include/c++/10/bits/hashtable_policy.h:876:45: note: candidate expects 3 arguments, 2 provided
876 | size_type __n_elt = __detail::__distance_fw(__first, __last);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/hashtable_policy.h:70:5: note: candidate: 'template<class _Iterator> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__detail::__distance_fw(_Iterator, _Iterator, std::forward_iterator_tag)'
70 | __distance_fw(_Iterator __first, _Iterator __last,
| ^~~~~~~~~~~~~
/usr/include/c++/10/bits/hashtable_policy.h:70:5: note: template argument deduction/substitution failed:
/usr/include/c++/10/bits/hashtable_policy.h:876:45: note: candidate expects 3 arguments, 2 provided
876 | size_type __n_elt = __detail::__distance_fw(__first, __last);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/10/bits/hashtable_policy.h:76:5: note: candidate: 'template<class _Iterator> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__detail::__distance_fw(_Iterator, _Iterator)'
76 | __distance_fw(_Iterator __first, _Iterator __last)
| ^~~~~~~~~~~~~
/usr/include/c++/10/bits/hashtable_policy.h:76:5: note: template argument deduction/substitution failed:
/usr/include/c++/10/bits/hashtable_policy.h: In substitution of 'template<class _Iterator> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__detail::__distance_fw(_Iterator, _Iterator) [with _Iterator = int]':
/usr/include/c++/10/bits/hashtable_policy.h:876:45: required from 'void std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_insert_range(_InputIterator, _InputIterator, const _NodeGetter&, std::true_type) [with _InputIterator = int; _NodeGetter = std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::pair<const int, int>, false> > >; _Key = int; _Value = std::pair<const int, int>; _Alloc = std::allocator<std::pair<const int, int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<int>; _H1 = std::hash<int>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>; std::true_type = std::integral_constant<bool, true>]'
/usr/include/c++/10/bits/hashtable_policy.h:861:26: required from 'void std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::insert(_InputIterator, _InputIterator) [with _InputIterator = int; _Key = int; _Value = std::pair<const int, int>; _Alloc = std::allocator<std::pair<const int, int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<int>; _H1 = std::hash<int>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>]'
/usr/include/c++/10/bits/unordered_map.h:645:15: required from 'void std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = int; _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
main.cpp:22:41: required from here
/usr/include/c++/10/bits/hashtable_policy.h:76:5: error: no type named 'difference_type' in 'struct std::iterator_traits<int>'
/usr/include/c++/10/bits/hashtable_policy.h: In instantiation of 'void std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_M_insert_range(_InputIterator, _InputIterator, const _NodeGetter&, std::true_type) [with _InputIterator = int; _NodeGetter = std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::pair<const int, int>, false> > >; _Key = int; _Value = std::pair<const int, int>; _Alloc = std::allocator<std::pair<const int, int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<int>; _H1 = std::hash<int>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>; std::true_type = std::integral_constant<bool, true>]':
/usr/include/c++/10/bits/hashtable_policy.h:861:26: required from 'void std::__detail::_Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::insert(_InputIterator, _InputIterator) [with _InputIterator = int; _Key = int; _Value = std::pair<const int, int>; _Alloc = std::allocator<std::pair<const int, int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<int>; _H1 = std::hash<int>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>]'
/usr/include/c++/10/bits/unordered_map.h:645:15: required from 'void std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = int; _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >]'
main.cpp:22:41: required from here
/usr/include/c++/10/bits/hashtable_policy.h:883:24: error: invalid type argument of unary '*' (have 'int')
883 | if (__h._M_insert(*__first, __node_gen, __unique_keys(),
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !