Problem Marbels - AC on spoj but getting WA in assignment section

well i tried to solve the problem
and here is my code:-https://ide.codingblocks.com/s/79226
i am not able to find my mistake for now ,please help

wait , there is an error in the test cases .
we will fix it tell you soon .
sorry for the inconvenience.

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.