| Problem | lunchbox |
|---|---|
| User | calvinkulit |
| Submission Time | 2026-06-23 16:13:47 |
| 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: ‘vector’ was not declared in this scope
8 | vector<int>k(m);
| ^~~~~~
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:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
lunchbox.cpp:8:9: note: in expansion of macro ‘int’
8 | vector<int>k(m);
| ^~~
lunchbox.cpp:10:10: error: ‘k’ was not declared in this scope
10 | cin >> k[i];
| ^
lunchbox.cpp:12:7: error: ‘k’ was not declared in this scope
12 | sort(k.begin(), k.end());
| ^
lunchbox.cpp:12:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
12 | sort(k.begin(), k.end(