Problem lunchbox
User Jaffia
Submission Time 2026-06-24 21:38:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> N >> m;
| ^~~
lunchbox.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<int> nooflunchboxes(m); // declaring vector
| ^~~~~~
lunchbox.cpp:1:13: error: expected primary-expression before ‘long’
1 | #define int long long
| ^~~~
lunchbox.cpp:5:12: note: in expansion of macro ‘int’
5 | vector<int> nooflunchboxes(m); // declaring vector
| ^~~
lunchbox.cpp:7:16: error: ‘nooflunchboxes’ was not declared in this scope
7 | cin >> nooflunchboxes[i]; // this is inputting
| ^~~~~~~~~~~~~~
lunchbox.cpp:9:10: error: ‘nooflunchboxes’ was not declared in this scope
9 | sort(nooflunchboxes.begin(),nooflunchboxes.end()); // sorting
| ^~~~~~~~~~~~~~
lunc