Problem | pythonlist |
---|---|
User | ov5rki11 |
Submission Time | 2025-06-18 10:09:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:18:12: error: ‘class std::vector<std::__cxx11::basic_string<char> >’ has no member named ‘push’
18 | prntstk.push(stk.top())
| ^~~~
pythonlist.cpp:21:12: error: ‘class std::vector<std::__cxx11::basic_string<char> >’ has no member named ‘push’
21 | prntstk.push("Empty")
| ^~~~
pythonlist.cpp:25:22: error: missing template arguments before ‘.’ token
25 | cout << (int)vector.front
| ^
pythonlist.cpp:26:1: error: expected ‘}’ at end of input
26 | }
| ^
pythonlist.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^