iska code samajh ni aaya?
mera ouput different aa rha
Allocation -google kicksort
you can use int or int32_t both will give you same answer here, in case of int32_t it is defined that program will use 32 bit data type while int take data type as per requirement,
IOS is used to take fast input/output
here we have taken array of 1 based indexing so we start sort from iterator 1 hence we use sort(a+1,a+n+1) if you take 0 based indexing you can use sort(a,a+n).
this is the code