Help needed in debugging. Snakes And Ladders Problem

My code is showing wrong output could you please help me in figuring out where i am going wrong in finding the shortest path

@utkarshvashisth94 hey let me check your code.

@utkarshvashisth94 You have send other code to me related to no of divisors.

Sorry i sent it by mistake .https://ide.codingblocks.com/s/257785 Here is the code.

@utkarshvashisth94 hey your logic is not upto the mark ,if current place has snake or ladder then you have to push the head of ladder and tail of snake in queue as its neigbour,please correct your code,you will get it,feel free to ask any doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.