Problem | lunchbox |
---|---|
User | theRealLucasXD |
Submission Time | 2025-05-23 21:45:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:2: error: expected primary-expression before ‘<’ token
8 | <vector>int lunchBoxes;
| ^
lunchbox.cpp:8:9: error: missing template arguments before ‘>’ token
8 | <vector>int lunchBoxes;
| ^
lunchbox.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
lunchbox.cpp:8:10: note: in expansion of macro ‘int’
8 | <vector>int lunchBoxes;
| ^~~
lunchbox.cpp:12:3: error: ‘lunchBoxes’ was not declared in this scope
12 | lunchBoxes.push_back(current);
| ^~~~~~~~~~
lunchbox.cpp:15:7: error: ‘lunchBoxes’ was not declared in this scope
15 | sort(lunchBoxes.begin(), lunchBoxes.end());
| ^~~~~~~~~~
lunchbox.cpp:16:12: error: ‘lunchboxes’ was not declared in this scope
16 | int sum = lunchboxes[0], schools = 1;
|