Problem parallelogramisation
User om2024
Submission Time 2024-06-20 15:41:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

parallelogramisation.cpp: In function ‘int main()’:
parallelogramisation.cpp:8:3: error: ‘dq’ was not declared in this scope; did you mean ‘q’?
8 | dq.push_back(x);
| ^~
| q
parallelogramisation.cpp:9:2: error: expected ‘}’ before ‘else’
9 | else if (q == 2) {
| ^~~~
parallelogramisation.cpp:7:14: note: to match this ‘{’
7 | if (q == 1) {
| ^
parallelogramisation.cpp:10:3: error: ‘dq’ was not declared in this scope; did you mean ‘q’?
10 | dq.pop_back();
| ^~
| q
parallelogramisation.cpp:11:2: error: expected ‘}’ before ‘else’
11 | else if (q == 3) {
| ^~~~
parallelogramisation.cpp:9:19: note: to match this ‘{’
9 | else if (q == 2) {
| ^
parallelogramisation.cpp:12:11: error: ‘dq’ was not declared in this scope; did you mean ‘q’?
12 | int x = dq.first(); cin >> x;
| ^~