Problem smurf
User cheryltkx
Submission Time 2026-04-18 11:08:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smurf.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
smurf.cpp: In function ‘int main()’:
smurf.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin>>n;
| ^~~
smurf.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int>smurfs(n);
| ^~~~~~
smurf.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int>smurfs(n);
| ^~~
smurf.cpp:8:2: error: ‘deque’ was not declared in this scope
8 | deque<int>dq;
| ^~~~~
smurf.cpp:8:8: error: expected primary-expression before ‘int’
8 | deque<int>dq;
| ^~~
smurf.cpp:11:4: error: ‘dq’ was not declared in this scope
11 | dq.push_front(smurfs[i]);
| ^~
smurf.cpp:11:18: error: ‘smurfs’ was not declared in this scope
11 | dq.push_front(smurfs[i]);
| ^~