What is the problem in this code?

im getting the desired output but my solution isnt being accepted, please help
My solution - https://ide.codingblocks.com/s/104632