Include #include at the top of your file. This header gives you sort(), reverse(), find(), binary_search(), and most other commonly used algorithms. You'll also need #include for accumulate() and similar mathematical functions.
These are separate because they're used less frequently than the main algorithms. Without these includes, your code won't compile when you try to use the functions. Add them at the top of your file along with your other standard library headers.