Problem | lunchbox |
---|---|
User | KingH |
Submission Time | 2025-08-04 17:31:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:4:15: error: expected initializer before ‘<<’ token
4 | int lunchbox << lines;
| ^~
lunchbox.cpp:5:9: error: ‘lunchbox’ was not declared in this scope
5 | cin >> lunchbox << lines;
| ^~~~~~~~
lunchbox.cpp:5:21: error: ‘lines’ was not declared in this scope
5 | cin >> lunchbox << lines;
| ^~~~~
lunchbox.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int> list;
| ^~~~~~
lunchbox.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include<iostream>
+++ |+#include <vector>
2 | using namespace std;
lunchbox.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int> list;
| ^~~
lunchbox.cpp:7:9: error: ‘list’