| Problem | leftright |
|---|---|
| User | wtnetlegend |
| Submission Time | 2025-03-09 19:07:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
leftright.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
leftright.cpp: In function ‘int main()’:
leftright.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> Q;
| ^~~
leftright.cpp:6:2: error: ‘queue’ was not declared in this scope
6 | queue <int> q1;
| ^~~~~
leftright.cpp:6:9: error: expected primary-expression before ‘int’
6 | queue <int> q1;
| ^~~
leftright.cpp:7:9: error: expected primary-expression before ‘int’
7 | queue <int> q2;
| ^~~
leftright.cpp:14:4: error: ‘q’ was not declared in this scope
14 | q.push(n);
| ^
leftright.cpp:16:15: error: expected ‘}’ at end of input
16 | if (a == 2) {
| ^
leftright.cpp:16:15: error: expected ‘}’ at end of input
leftright.cpp:8:13: note: to match this ‘{’
8 | while (Q--){