Problem | uniquenumbers |
---|---|
User | blackpanther |
Submission Time | 2025-04-23 15:32:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:10:10: error: no matching function for call to ‘std::unordered_set<int>::size(int&)’
10 | s.size(N);
| ^
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:2:
/usr/include/c++/9/bits/unordered_set.h:304:7: note: candidate: ‘std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size() const [with _Value = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<int>; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::size_type = long unsigned int]’
304 | size() const noexcept
| ^~~~
/usr/include/c++/9/bits/unordered_set.h:304:7: note: candidate expects 0 arguments, 1 provided