LOSTMAX - Editorial

what is wrong in my code please tell i am unable to find the bug

I got partially accepted result. What I am doing wrong plaease help.
https://www.codechef.com/viewsolution/33243483

I think there’s no need of getline()
beginners can do it easily with the clean logic below
use only array to read integers
read space using getchar() alternatively
then sort the array
l is the desired value
can see my sol here
easy solution here no knowledge of strings required

Hi coders! :raised_back_of_hand:
This is my sln in C++14, with no sorting and AC 0.00 Execution Time.

Solution