Problem | mindeque |
---|---|
User | StormyGood |
Submission Time | 2024-12-14 09:46:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mindeque.cpp: In function ‘int main()’:
mindeque.cpp:10:5: error: ‘vector’ was not declared in this scope
10 | vector<int> result;
| ^~~~~~
mindeque.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <deque>
+++ |+#include <vector>
3 | using namespace std;
mindeque.cpp:10:12: error: expected primary-expression before ‘int’
10 | vector<int> result;
| ^~~
mindeque.cpp:44:17: error: ‘result’ was not declared in this scope
44 | result.push_back(0);
| ^~~~~~
mindeque.cpp:46:17: error: ‘result’ was not declared in this scope
46 | result.push_back(1);
| ^~~~~~
mindeque.cpp:51:18: error: ‘result’ was not declared in this scope
51 | for (int r : result) {
| ^~~~~~