#include <iostream>
#include <vector>
#include <algorithm>

int main() {
    std::vector<int> numbers = {1, 2, 3, 4, 5};

    // 使用 std::reverse() 函数颠倒向量中的元素顺序
    std::reverse(numbers.begin(), numbers.end());

    // 输出颠倒后的向量
    std::cout << "Reversed vector: ";
    for (const auto &num : numbers) {
        std::cout << num << " ";
    }
    std::cout << std::endl;

    return 0;
}
