Problem | uniquenumbers |
---|---|
User | chinesewarcriminal |
Submission Time | 2023-04-20 19:04:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:13:19: error: no matching function for call to ‘std::unordered_set<std::__cxx11::basic_string<char> >::insert(int&)’
13 | s.insert(x);
| ^
In file included from /usr/include/c++/9/unordered_set:47,
from uniquenumbers.cpp:2:
/usr/include/c++/9/bits/unordered_set.h:421:7: note: candidate: ‘std::pair<typename std::_Hashtable<_Value, _Value, _Alloc, std::__detail::_Identity, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::__not_<std::__and_<std::__is_fast_hash<_Hash>, std::__is_nothrow_invocable<const _Hash&, const _Tp&> > >::value, true, true> >::iterator, bool> std::unordered_set<_Value, _Hash, _Pred, _Alloc>::insert(const value_type&) [with _Value = std::__cxx11::basic_string<char>