Problem pythonlist
User YatHan
Submission Time 2025-06-18 09:40:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:12:29: error: invalid types ‘int[int]’ for array subscript
12 | dq.push_back(Q[i]);
| ^
pythonlist.cpp:16:23: error: invalid use of member function ‘std::deque<_Tp, _Alloc>::size_type std::deque<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
16 | } else if (dq.size == 0){
| ~~~^~~~
| ()