| Problem | lunchbox |
|---|---|
| User | Kaijun |
| Submission Time | 2026-04-10 17:42:39 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:7: error: expected identifier before numeric constant
13 | int[0] k;
| ^
lunchbox.cpp:13:7: error: expected ‘]’ before numeric constant
13 | int[0] k;
| ^
| ]
lunchbox.cpp:13:6: error: structured binding declaration cannot have type ‘int’
13 | int[0] k;
| ^
lunchbox.cpp:13:6: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
lunchbox.cpp:13:6: error: empty structured binding declaration
lunchbox.cpp:13:10: error: expected initializer before ‘k’
13 | int[0] k;
| ^
lunchbox.cpp:14:8: error: ‘k’ was not declared in this scope
14 | cin>>k;
| ^
lunchbox.cpp:15:8: error: request for member ‘push_back’ in ‘list’, which is of non-class type ‘int [0]’
15 | list.push_back(k);
| ^~~~~~~~~