| Problem | lis |
|---|---|
| User | j0ashhh |
| Submission Time | 2026-02-20 22:34:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lis.cpp: In function ‘int main()’:
lis.cpp:13:9: error: redeclaration of ‘auto i’
13 | list[i] = 1;
| ^
lis.cpp:12:10: note: ‘int i’ previously declared here
12 | for(int i=0; i<N; i++){
| ^
lis.cpp:13:13: error: class template argument deduction failed:
13 | list[i] = 1;
| ^
lis.cpp:13:13: error: no matching function for call to ‘list(int)’
In file included from /usr/include/c++/9/list:63,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:79,
from lis.cpp:1:
/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.