using namespace std;
int main() {
// 创建名为 cars 的字符串栈
stack<string> cars;
// 向栈中添加元素
cars.push("Volvo");
cars.push("BMW");
cars.push("Ford");
cars.push("Tesla");
// 移除最后/最新添加的元素 (Tesla)
cars.pop();
// 访问栈顶元素(现在是 Ford)
cout << cars.top();
return 0;
}