Problem eeducation
User Hytoh
Submission Time 2023-12-05 20:32:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eeducation.cpp: In function ‘int main()’:
eeducation.cpp:11:19: error: no matching function for call to ‘std::set<int>::set(int&)’
11 | set<int> lmao1(m);
| ^
In file included from /usr/include/c++/9/set:61,
from eeducation.cpp:5:
/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:
eeducation.cpp:11:19: note: candidate expects 3 arguments, 1 provided
11 | set<int> lmao1(m);
| ^
In file included from /usr/include/c++/9/set:61,
from eeducation.cpp:5:
/usr/include/c++/9/bits/stl_set.h:265:7: note: candidate: ‘std::set<_Key