using namespace std;
int main() {
list<string> cars = {"Volvo", "BMW", "Ford", "Tesla"};
// 在列表开头添加元素
cars.push_front("Audi");
// 在列表末尾添加元素
cars.push_back("VW");
// 打印列表元素
for (string car : cars) {
cout << car << "\n";
}
return 0;
}