Problem | pythonlist |
---|---|
User | hitarthdangra |
Submission Time | 2025-06-18 13:09:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:14:13: error: ‘class std::stack<int>’ has no member named ‘push_back’
14 | question.push_back(x);
| ^~~~~~~~~
pythonlist.cpp:16:12: error: expected unqualified-id before ‘.’ token
16 | if (list.empty()) {
| ^
pythonlist.cpp:19:16: error: missing template arguments before ‘.’ token
19 | cout << list.back() << "\n";
| ^
pythonlist.cpp:20:13: error: ‘class std::stack<int>’ has no member named ‘pop_back’
20 | question.pop_back()
| ^~~~~~~~
pythonlist.cpp:22:2: error: expected ‘}’ at end of input
22 | }
| ^
pythonlist.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^