Problem | bestplace |
---|---|
User | TheFelixKS |
Submission Time | 2024-03-10 11:01:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bestplace.cpp: In function ‘int main()’:
bestplace.cpp:9:2: error: ‘vector’ was not declared in this scope
9 | vector<int> x;
| ^~~~~~
bestplace.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;
bestplace.cpp:9:9: error: expected primary-expression before ‘int’
9 | vector<int> x;
| ^~~
bestplace.cpp:10:9: error: expected primary-expression before ‘int’
10 | vector<int> y;
| ^~~
bestplace.cpp:15:3: error: ‘x’ was not declared in this scope
15 | x.emplace_back(a);
| ^
bestplace.cpp:16:3: error: ‘y’ was not declared in this scope
16 | y.emplace_back(b);
| ^
bestplace.cpp:19:7: error: ‘x’ was not declared in this scope
19 | sort(x.begin(), x.end());
| ^
bestpl