Problem pythonlist
User m0chib8gel
Submission Time 2025-06-18 10:20:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:7:6: error: ‘i’ was not declared in this scope
7 | for (i=0; i<Q; i++) {
| ^
pythonlist.cpp:7:13: error: ‘Q’ was not declared in this scope
7 | for (i=0; i<Q; i++) {
| ^
pythonlist.cpp:14:5: error: ‘X’ was not declared in this scope
14 | if (X==1) {
| ^
pythonlist.cpp:15:11: error: class template argument deduction failed:
15 | queue q;
| ^
pythonlist.cpp:15:11: error: no matching function for call to ‘queue()’
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from pythonlist.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:316:5: note: candidate: ‘template<class _Container, class> std::queue(_Container)-> std::queue<typename _Container::value_type, _Container>’
316 | queue(_Container) ->