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

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:12:29: error: no matching function for call to ‘std::set<long long int>::set(int)’
12 | set<long long> s(stoi(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:12:29: note: candidate expects 3 arguments, 1 provided
12 | set<long long> s(stoi(n));
| ^
In file included from /usr/include/c++/9/set:61,
from uniquenumbers.cpp:2:
/usr/includ