Getting wrong answer after submitting in SPOJ

I implemented the code and tried to submit it in SPOJ. But the code was giving wrong answer on the platform. The link of the BIASED STANDINGS question is https://www.spoj.com/problems/BAISED/. And the solution code is https://ide.codingblocks.com/s/307385.

I made some minor changes, but still it is showing wrong answer after submitting in SPOJ. Can anyone please help. The code is https://ide.codingblocks.com/s/307385

your logic is not correct . please see the code below for reference.

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.