ALL the TEST CASES FAIL

my code is giving correct result on sample input
i am not able to get error
code link::https://ide.codingblocks.com/s/176255