Problem pythonlist
User aiden
Submission Time 2025-07-23 18:15:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp:4:1: error: expected initializer before ‘int’
4 | int x;
| ^~~
pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:10:10: error: ‘x’ was not declared in this scope
10 | cin >> x;
| ^
pythonlist.cpp:11:3: error: ‘a’ was not declared in this scope
11 | a.push_back(x);
| ^
pythonlist.cpp:14:11: error: ‘a’ was not declared in this scope
14 | cout << a[a.size()]
| ^