| Problem | lunchbox |
|---|---|
| User | Kaijun |
| Submission Time | 2026-04-10 17:29:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:14:8: error: request for member ‘push_back’ in ‘list’, which is of non-class type ‘long long int [0]’
14 | list.push_back(k);
| ^~~~~~~~~
lunchbox.cpp:16:6: error: conflicting declaration ‘int n’
16 | int n = sizeof(list) / sizeof(list[0]);
| ^
lunchbox.cpp:7:12: note: previous declaration as ‘long long int n’
7 | long long n;
| ^
lunchbox.cpp:24:7: error: expected ‘;’ before ‘cout’
24 | sc++
| ^
| ;
25 | cout<<sc
| ~~~~
lunchbox.cpp:27:2: error: expected ‘}’ at end of input
27 | }
| ^
lunchbox.cpp:6:12: note: to match this ‘{’
6 | int main() {
| ^