Problem pythonlist
User Haoyu
Submission Time 2026-11-22 23:39:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:16:20: error: expected ‘;’ before ‘}’ token
16 | cout << "Empty"
| ^
| ;
17 | }else {
| ~
pythonlist.cpp:18:10: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
18 | cout << v.back << endl;
| ~~~~ ^~ ~~~~~~
| | |
| | <unresolved overloaded function type>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,