Problem hallucinations
User Username101
Submission Time 2025-06-18 09:56:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hallucinations.cpp: In function ‘int main()’:
hallucinations.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> n;
| ^~~
hallucinations.cpp:4:5: error: ‘deque’ was not declared in this scope
4 | deque<int>dq;
| ^~~~~
hallucinations.cpp:4:11: error: expected primary-expression before ‘int’
4 | deque<int>dq;
| ^~~
hallucinations.cpp:8:13: error: ‘dq’ was not declared in this scope
8 | if (dq.empty()) {
| ^~
hallucinations.cpp:13:9: error: ‘cout’ was not declared in this scope
13 | cout << dq.back() << " ";
| ^~~~
hallucinations.cpp:13:17: error: ‘dq’ was not declared in this scope
13 | cout << dq.back() << " ";
| ^~
hallucinations.cpp:21:13: error: ‘cout’ was not declared in this scope
21 | cout << dq[r-1] &l