Not able to find error

code is working on dev c++ but not here

@divyam_13 you should sort the array if you are going to take e as the last element

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.