Test cases not passing

My output for the sample input is correct but all the testcases are failing. Please tell the issue in my code:

Modified Code

check now
i have done small modification and commented the wrong portion

Still not getting the testcases right

actually you interpret question in a wrong way

Given a singly linked list delete all nodes which are having a greater value among any of the nodes residing on the right side.

right side doesn’t means just right element it means all elements in right side
for this input
10
337 572 321 679 252 150 279 687 933 475
correct output will be
933 475

I fixed the code logic but it’s still not working: Code: https://ide.codingblocks.com/s/650550

Modified Code

i have done some corrections