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#include <iostream>
2#include <vector>
3#include <algorithm>
4using namespace std;
5int main() {
6 vector<int> v = { 10, 9, 8, 6, 7, 2, 5, 1 };
7 sort(v.begin(), v.end(), greater <>());
8}