In 17th line of code if the starting point of container is a then ending point of the container should be n because in iteration videos iteration starts from i=1 to i=n-1.
Problem related to sort function
what is standard template library
@vikash3303 stl contains lot of inbuilt functions that can be used in stl (its a library of inbuilt functions) like sort stack queue maps …