#include <iostream>
#include <list>
using namespace std;
int main() {
// 创建名为 cars 的字符串列表
list<string> cars = {"Volvo", "BMW", "Ford", "Tesla"};
// 打印列表元素
for (string car : cars) {
cout << car << "\n";
}
return 0;