Problem sadtrainer
User JhoCyber
Submission Time 2025-01-27 16:26:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sadtrainer.cpp: In function ‘int32_t main()’:
sadtrainer.cpp:8:14: error: no matching function for call to ‘std::set<long long int>::set(long long int&)’
8 | set<int>a(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 sadtrainer.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:
sadtrainer.cpp:8:14: note: candidate expects 3 arguments, 1 provided
8 | set<int>a(n);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x8