Problem | pythonlist |
---|---|
User | al3xaaa |
Submission Time | 2025-06-18 10:35:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:2:5: error: ‘vector’ was not declared in this scope
2 | vector<int> vec;
| ^~~~~~
pythonlist.cpp:2:12: error: expected primary-expression before ‘int’
2 | vector<int> vec;
| ^~~
pythonlist.cpp:3:12: error: ‘cin’ was not declared in this scope
3 | int Q; cin >> Q;
| ^~~
pythonlist.cpp:8:13: error: ‘vec’ was not declared in this scope
8 | vec.push_back(x);
| ^~~
pythonlist.cpp:10:17: error: ‘vec’ was not declared in this scope
10 | if (vec.size() != 0) {
| ^~~
pythonlist.cpp:11:17: error: ‘cout’ was not declared in this scope
11 | cout << vec.back() << "\n";
| ^~~~
pythonlist.cpp:14:17: error: ‘cout’ was not declared in this scope
14 | cout <<