Coding Blocks IDE

Not able to get the required output. Please help. Rat in a maze problem