Problem | card |
---|---|
User | Rollsroyce26 |
Submission Time | 2024-06-21 10:01:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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: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) << " " << dq(k + 1);
| ^