robots and path cd1it4

question:CD1IT4 Problem - CodeChef
solution link: zCfz3I - Online C++ Compiler & Debugging Tool - Ideone.com
why i m getting wa in this?

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

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

thank you :slight_smile: