Problem card
User PerihelionfromAphelion
Submission Time 2026-04-25 09:50:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i = 0; i < a; i++) {
| ^
card.cpp:13:7: error: ‘i’ was not declared in this scope
13 | for (i = 0; i < s.size(); i++) {
| ^
card.cpp:17:17: error: ‘tmp’ was not declared in this scope; did you mean ‘tmp2’?
17 | dq.push_back(tmp);
| ^~~
| tmp2
card.cpp:24:18: error: ‘first’ was not declared in this scope
24 | dq.push_front(first);
| ^~~~~
card.cpp:25:17: error: ‘second’ was not declared in this scope
25 | dq.push_back(second);
| ^~~~~~
card.cpp:28:7: error: ‘i’ was not declared in this scope
28 | for (i = 0; i < n; i++) {
| ^
card.cpp:28:18: error: ‘n’ was not declared in this scope
28 | for (i = 0; i < n; i++) {
| ^