Problem uniquenumbers
User P55D2K
Submission Time 2023-04-21 14:55:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:13:16: error: no matching function for call to ‘std::set<long long int>::set(long long int&)’
13 | set<ll> s(n);
| ^
In file included from /usr/include/c++/9/set:61,
from uniquenumbers.cpp:2:
/usr/include/c++/9/bits/stl_set.h:271:2: note: candidate: ‘template<class _InputIterator> std::set<_Key, _Compare, _Alloc>::set(_InputIterator, _InputIterator, const allocator_type&)’
271 | set(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/9/bits/stl_set.h:271:2: note: template argument deduction/substitution failed:
uniquenumbers.cpp:13:16: note: candidate expects 3 arguments, 1 provided
13 | set<ll> s(n);
| ^
In file included from /usr/include/c++/9/set:61,
from uniquenumbers.cpp:2:
/usr/include/c++/9/bits/stl_set.h:265:7: note: candi