Snake and ladder problem

link to my code, can you please help , i am not getting the correct output.

@ChiragJindal7
There were a few errors.
I have made some changes to your code here https://ide.codingblocks.com/s/195004

If your doubt is resolved please mark it as closed.