1#include <bits/stdc++.h> // Vector
2#include <algorithm> // Reverse
3using namespace std;
4
5int main()
6{
7 vector<int> nums{4,1,2,1,2};
8
9 reverse(nums.begin(), nums.end());
10 return 0;
11}
12
1// Given the vector
2vector<int> a = { 1, 45, 54, 71, 76, 12 };
3
4// Reverse the vector
5reverse(a.begin(), a.end());