Problem | duckhunt5 |
---|---|
User | Elwinthenerd |
Submission Time | 2024-12-22 13:13:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:6:14: error: no matching function for call to ‘std::set<int>::set(int&)’
6 | set<int> S(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 duckhunt5.cpp:1:
/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:
duckhunt5.cpp:6:14: note: candidate expects 3 arguments, 1 provided
6 | set<int> S(N);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/st