Submission problem

i m getting case fail error whereas i coded exactly as directed in above aggressive cows video

@shreya_agarwal
You have not taken input from system. You gave your inputs, that’s why your code isn’t working.
Comment out line 26 to 28 and write these lines
int n,cows;
cin>>n>>cows;
int stalls[n];
for(int i=0;i<n;i++){ cin>>stalls[i]; }
sort(stalls, stalls+n);

Your code will work. Also include for sort() function

@shreya_agarwal
I have updated your code, plz check here

@shreya_agarwal
Mark this doubt as resolved.