Problem pythonlist
User cheryltkx
Submission Time 2026-04-18 10:54:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> Q
| ^~~
pythonlist.cpp:7:17: error: ‘q’ was not declared in this scope
7 | for (int i=0;i<q;i++){
| ^
pythonlist.cpp:12:4: error: ‘v’ was not declared in this scope
12 | v.push_back(x);
| ^
pythonlist.cpp:15:8: error: ‘v’ was not declared in this scope
15 | if (v.empty()){
| ^
pythonlist.cpp:16:5: error: ‘cout’ was not declared in this scope
16 | cout <<"Empty\n"
| ^~~~
pythonlist.cpp:19:5: error: ‘cout’ was not declared in this scope
19 | cout<<v.back()<<"\n";
| ^~~~