Why i am unable to pass testcase

code :https://ide.codingblocks.com/s/249663,
I passed all testcase on leetcode

hello @rbpagire
ur output format is not correct.
pls check sample output.