Problem | uniquenumbers |
---|---|
User | blackpanther |
Submission Time | 2025-04-23 15:28:35 |
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::set<int>::size(long long int&)’
10 | s.size(N);
| ^
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:2:
/usr/include/c++/9/bits/stl_set.h:419:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::size_type std::set<_Key, _Compare, _Alloc>::size() const [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::size_type = long unsigned int]’
419 | size() const _GLIBCXX_NOEXCEPT
| ^~~~
/usr/include/c++/9/bits/stl_set.h:419:7: note: candidate expects 0 arguments, 1 provided
uniquenumbers.cpp:12:2: error: expected ‘,’ or ‘;’ before ‘for’
12 | for (int i = 0; i < N; ++i) {
| ^~~
un