Problem card
User Rollsroyce26
Submission Time 2024-06-21 09:58:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:12:23: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
12 | dq.push_back[i];
| ^
card.cpp:18:7: error: ‘class std::deque<int>’ has no member named ‘pushback’; did you mean ‘push_back’?
18 | dq.pushback(front);
| ^~~~~~~~
| push_back
card.cpp:29:20: error: no match for call to ‘(std::deque<int>) (int)’
29 | cout << dq(k- 1) << " " << dq(k) << " " << dq(k + 1)
| ^
card.cpp:29:36: error: no match for call to ‘(std::deque<int>) (int&)’
29 | cout << dq(k- 1) << " " << dq(k) << " " << dq(k + 1)
| ^
card.cpp:29:56: error: no match for call to ‘(std::deque<int>) (int)’
29 | cout << dq(k- 1) << " " << dq(k) &l