please help me in resolving the error in below code:
int smallestRangeII(vector& A, int k) { sort(A.begin(), A.end()); int mini