Problem lunchbox
User theRealLucasXD
Submission Time 2025-05-23 21:42:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:11:10: error: ‘lunchBoxes’ was not declared in this scope
11 | cin >> lunchBoxes[i];
| ^~~~~~~~~~
lunchbox.cpp:14:7: error: ‘lunchBoxes’ was not declared in this scope
14 | sort(lunchBoxes.begin(), lunchBoxes.end());
| ^~~~~~~~~~
lunchbox.cpp:15:12: error: ‘lunchboxes’ was not declared in this scope
15 | int sum = lunchboxes[0], schools = 1;