Problem | card |
---|---|
User | wongethan8192 |
Submission Time | 2023-03-08 11:52:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:6:1: error: ‘deque’ was not declared in this scope
6 | deque<int>d;for(int i=0;i<a;i++)d.push_back(i);
| ^~~~~
card.cpp:3:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
2 | #include<vector>
+++ |+#include <deque>
3 | using namespace std;
card.cpp:6:7: error: expected primary-expression before ‘int’
6 | deque<int>d;for(int i=0;i<a;i++)d.push_back(i);
| ^~~
card.cpp:6:33: error: ‘d’ was not declared in this scope
6 | deque<int>d;for(int i=0;i<a;i++)d.push_back(i);
| ^
card.cpp:7:32: error: ‘d’ was not declared in this scope
7 | for(char&z:c){if(z=='A'){int e=d[0];d.pop_front();d.push_back(e);}else if(z=='B'){int e=d[1],f=d[0];d.pop_front();d.pop_front();d.push_back(e);d.push_front(f);}}
|