Number of paths

Whats the issue with my code?
https://online.codingblocks.com/app/player/152626/content/143473/8537/code-challenge

Hey @kshitijkameria

    for(int j=1; j<n; j++){  //<n
        input[0][j]=1;
    }

    for(int i=1; i<m; i++){  //<m
        input[i][0]=1;
    }

    for(int i=1; i<m; i++){ //<m
        for(int j=1; j<n; j++){ //<n
            input[i][j]=input[i-1][j]+input[i][j-1];
        }
    }