Problem pythonlist
User khai
Submission Time 2025-06-18 10:30:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:9:16: error: ‘t’ was not declared in this scope
9 | cin >> t;
| ^
pythonlist.cpp:11:20: error: ‘x’ was not declared in this scope
11 | cin >> x
| ^
pythonlist.cpp:14:34: error: no matching function for call to ‘std::deque<int>::push_back()’
14 | cout << dq.push_back();
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from pythonlist.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1569:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::value_type = int]’
1569 | push_back(const value_type& __x)
| ^~~~~~~~~
/u