Problem | lunchbox |
---|---|
User | wyaptw |
Submission Time | 2025-05-22 20:15:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:2:1: error: ‘vector’ does not name a type
2 | vector<int> boxes;
| ^~~~~~
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:19: error: ‘m’ was not declared in this scope
8 | std::cin >> N >> m;
| ^
lunchbox.cpp:11:3: error: ‘boxes’ was not declared in this scope
11 | boxes.push_to_back(a);
| ^~~~~
lunchbox.cpp:13:7: error: ‘boxes’ was not declared in this scope
13 | sort(boxes, boxes+m);
| ^~~~~
lunchbox.cpp:13:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
13 | sort(boxes, boxes+m);
| ^~~~
| qsort