Problem uniquenumbers
User Johnnie
Submission Time 2023-07-02 20:15:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:14:24: error: no matching function for call to ‘std::unordered_set<std::__cxx11::basic_string<char> >::count()’
14 | cout << numbers.count();
| ^
In file included from /usr/include/c++/9/unordered_set:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:118,
from uniquenumbers.cpp:1:
/usr/include/c++/9/bits/unordered_set.h:668:7: note: candidate: ‘std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type std::unordered_set<_Value, _Hash, _Pred, _Alloc>::count(const key_type&) const [with _Value = std::__cxx11::basic_string<char>; _Hash = std::hash<std::__cxx11::basic_string<char> >; _Pred = std::equal_to<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_