sort(budget,budget+n); means in c++ code example Example: stl sort in c++ sort(arr, arr+n); // sorts in ascending order