| Problem | lunchbox |
|---|---|
| User | potatocabbage2 |
| Submission Time | 2026-08-31 23:54:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:10:2: error: ‘vector’ was not declared in this scope
10 | vector<int> v;
| ^~~~~~
lunchbox.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <iostream>
+++ |+#include <vector>
3 | using namespace std;
lunchbox.cpp:10:9: error: expected primary-expression before ‘int’
10 | vector<int> v;
| ^~~
lunchbox.cpp:15:3: error: ‘v’ was not declared in this scope
15 | v.push_back(k);
| ^
lunchbox.cpp:18:7: error: ‘v’ was not declared in this scope
18 | sort(v.begin(), v.end());
| ^
lunchbox.cpp:18:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
18 | sort(v.begin(), v.end());
| ^~~~
| qsort