WA in TADELIV

Hi,
Can anyone tell me why i got WA in only 2 test cases of the problem https://www.codechef.com/problems/TADELIVE ??

Here is my solution https://www.codechef.com/viewsolution/20438164

Thanks