Problem catlunch
User R9q5P8
Submission Time 2025-10-28 20:56:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:15:24: error: no matching function for call to ‘std::set<long long int>::set(long long int&)’
15 | set<long long> reach(k);
| ^
In file included from /usr/include/c++/9/set:61,
from catlunch.cpp:4:
/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:
catlunch.cpp:15:24: note: candidate expects 3 arguments, 1 provided
15 | set<long long> reach(k);
| ^
In file included from /usr/include/c++/9/set:61,
from catlunch.cpp:4:
/usr/include/c++/9/bits/stl_set.h:265:7: note