Problem parallelogramisation
User chenyuming
Submission Time 2026-11-05 10:49:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

parallelogramisation.cpp: In function ‘int main()’:
parallelogramisation.cpp:8:13: error: conflicting declaration ‘std::deque<int> q’
8 | deque<int> q;
| ^
parallelogramisation.cpp:6:6: note: previous declaration as ‘int q’
6 | int q;
| ^
parallelogramisation.cpp:15:6: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’
15 | q.push(z);
| ^~~~
parallelogramisation.cpp:18:6: error: request for member ‘pop_back’ in ‘q’, which is of non-class type ‘int’
18 | q.pop_back();
| ^~~~~~~~
parallelogramisation.cpp:21:14: error: request for member ‘front’ in ‘q’, which is of non-class type ‘int’
21 | cout << q.front() << '\n';
| ^~~~~
parallelogramisation.cpp:22:6: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’
22 | q.pop();
| ^~~