Problem uniquenumbers
User dfsssssssssfsdfdssgdfs
Submission Time 2026-04-29 17:21:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:17:7: error: class template argument deduction failed:
17 | list{}[a]=[];
| ^
uniquenumbers.cpp:17:7: error: no matching function for call to ‘list()’
In file included from /usr/include/c++/9/list:63,
from uniquenumbers.cpp:2:
/usr/include/c++/9/bits/stl_list.h:1973:5: note: candidate: ‘template<class _InputIterator, class _ValT, class _Allocator, class, class> std::__cxx11::list(_InputIterator, _InputIterator, _Allocator)-> std::__cxx11::list<_ValT, _Allocator>’
1973 | list(_InputIterator, _InputIterator, _Allocator = _Allocator())
| ^~~~
/usr/include/c++/9/bits/stl_list.h:1973:5: note: template argument deduction/substitution failed:
uniquenumbers.cpp:17:7: note: candidate expects 3 arguments, 0 provided
17 | list{}[a]=[];
| ^
In file included from /usr/include/c++/9/list:63,
fro