Problem | uniquenumbers |
---|---|
User | LinelyQwert |
Submission Time | 2023-07-27 22:50:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:12:18: error: no matching function for call to ‘std::set<int>::count()’
12 | cout << s.count();
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from uniquenumbers.cpp:1:
/usr/include/c++/9/bits/stl_set.h:748:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::count(const key_type&) const [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int; std::set<_Key, _Compare, _Alloc>::key_type = int]’
748 | count(const key_type& __x) const
| ^~~~~
/usr/include/c++/9/bits/stl_set.h:748:7: note: candidate expects 1 argument, 0 provided
/usr/include/c++/9/bits/stl_set.h:754:2: note: