Problem related to sort function

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.

@vikash3303 to sort whole array you have to pass start index and ending index + 1
so (a,a+n)

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 …