// // A C++ program to demonstrate working of sort(), reverse() // // The All â–²lgorithms Project // // https://allalgorithms.com/sorting // https://github.com/allalgorithms/cpp // // Contributed by: Saket Kumar // Github: @saket1999 // #include #include #include #include //For accumulate operation using namespace std; int main() { // Initializing vector with array values int arr[] = {10, 20, 5, 23 ,42 , 15}; int n = sizeof(arr)/sizeof(arr[0]); vector vect(arr, arr+n); cout << "Vector is: "; for (int i=0; i