Problem | lunchbox |
---|---|
User | Elwinthenerd |
Submission Time | 2024-03-31 17:27:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int> schools(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:6:9: error: expected primary-expression before ‘int’
6 | vector<int> schools(m);
| ^~~
lunchbox.cpp:8:10: error: ‘schools’ was not declared in this scope
8 | cin >> schools[x];
| ^~~~~~~
lunchbox.cpp:10:7: error: ‘schools’ was not declared in this scope
10 | sort(schools.begin(), schools.end());
| ^~~~~~~
lunchbox.cpp:10:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
10 | sort(schools.begin(), schools.end());
| ^~~~
| qsort
lunchbox.