Problem trollingbribritt
User blackpanther
Submission Time 2025-04-22 19:22:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trollingbribritt.cpp: In function ‘int main()’:
trollingbribritt.cpp:8:13: error: conflicting declaration ‘std::deque<int> q’
8 | deque<int> q;
| ^
trollingbribritt.cpp:6:6: note: previous declaration as ‘int q’
6 | int q;
| ^
trollingbribritt.cpp:9:12: error: ‘Q’ was not declared in this scope
9 | while (Q--) { //compact C++ way of writing a loop that runs Q times.
| ^
trollingbribritt.cpp:16:15: error: request for member ‘push_back’ in ‘q’, which is of non-class type ‘int’
16 | q.push_back(x);
| ^~~~~~~~~
trollingbribritt.cpp:18:20: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘int’
18 | if (!q.empty()) {
| ^~~~~
trollingbribritt.cpp:19:19: error: request for member ‘pop_front’ in ‘q’, which is of non-class type ‘int’
19 | q.pop_front();