Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main()
- {
- vector<int> v {1,5,3,2,4};
- sort(v.begin(),v.end(),[](int a, int b){return a<b;});
- for (auto x: v)
- cout << x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement