Problem lunchbox
User will
Submission Time 2023-02-14 08:36:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int> boxes;
| ^~~~~~
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:7:9: error: expected primary-expression before ‘int’
7 | vector<int> boxes;
| ^~~
lunchbox.cpp:11:3: error: ‘boxes’ was not declared in this scope
11 | boxes.push_back(a);
| ^~~~~
lunchbox.cpp:13:7: error: ‘boxes’ was not declared in this scope
13 | sort(boxes.gegin(), boxes.end());
| ^~~~~
lunchbox.cpp:13:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
13 | sort(boxes.gegin(), boxes.end());
| ^~~~
| qsort
lunchbox.cpp:19:12: error: expected ‘;’ before