| Problem | lunchbox |
|---|---|
| User | Kaijun |
| Submission Time | 2026-04-10 17:38:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:17:36: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<int>’ and ‘int’)
17 | int x = sizeof(list) / sizeof(list[0]);
| ^
lunchbox.cpp:18:18: error: no match for ‘operator+’ (operand types are ‘std::__cxx11::list<int>’ and ‘int’)
18 | sort(list, list +x);
| ~~~~ ^~
| | |
| | int
| std::__cxx11::list<int>
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from lunchbox.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:423:5: note: candidate: ‘template<class _Iterator> constexpr std::reverse_iterator<_It