Problem smurf
User Tez
Submission Time 2026-03-12 16:35:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smurf.cpp: In function ‘int main()’:
smurf.cpp:8:5: error: ‘deque’ was not declared in this scope
8 | deque<int> dq;
| ^~~~~
smurf.cpp:2:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
1 | #include <iostream>
+++ |+#include <deque>
2 | using namespace std;
smurf.cpp:8:11: error: expected primary-expression before ‘int’
8 | deque<int> dq;
| ^~~
smurf.cpp:16:13: error: ‘dq’ was not declared in this scope
16 | dq.push_back(x);
| ^~
smurf.cpp:18:13: error: ‘dq’ was not declared in this scope
18 | dq.push_front(x);
| ^~
smurf.cpp:25:21: error: ‘dq’ was not declared in this scope
25 | cout << dq[i];
| ^~
smurf.cpp:30:21: error: ‘dq’ was not declared in this scope
30 | cout &