Cops and the Thief Devu submission not working

why my Submission for the problem COPS is not working. Its working fine for the sample cases.

//