You now use STL algorithms for cleaner code.
sort() orders elements, with custom comparators
find() and binary_search() locate elements
accumulate() sums values, unique() removes duplicates
next_permutation() generates all orderings
Good job. You write less code that does more. Next, you will learn object-oriented programming with classes.