robots and path cd1it4

question:http://www.codechef.com/problems/CD1IT4/
solution link: http://ideone.com/zCfz3I
why i m getting wa in this?

Your code will output -1 if arr[m][n] is blocked. The correct answer would be 0.

thank you :slight_smile:

guys i am not getting how to count number of total path ?? can any one explain little bit ?? thanks