0_0_33797696_20836.cpp: In function 'int main()':
0_0_33797696_20836.cpp:23:16: error: invalid types 'int[int]' for array subscript
dp[1][1]=1;
^
0_0_33797696_20836.cpp:28:28: error: invalid types 'int[int]' for array subscript
add(dp[i][j],dp[i][j-1]);
^
0_0_33797696_20836.cpp:28:39: error: invalid types 'int[int]' for array subscript
add(dp[i][j],dp[i][j-1]);
^
0_0_33797696_20836.cpp:29:28: error: invalid types 'int[int]' for array subscript
add(dp[i][j],dp[i-1][j-1]);
^
0_0_33797696_20836.cpp:29:41: error: invalid types 'int[int]' for array subscript
add(dp[i][j],dp[i-1][j-1]);
^
0_0_33797696_20836.cpp:33:28: error: invalid types 'int[int]' for array subscript
add(dp[i][j],dp[i][j+1]);
^
0_0_33797696_20836.cpp:33:39: error: invalid types 'int[int]' for array subscript
add(dp[i][j],dp[i][j+1]);
^
0_0_33797696_20836.cpp:34:28: error: invalid types 'int[int]' for array subscript
add(dp[i][j],dp[i-1][j]);
^
0_0_33797696_20836.cpp:34:39: error: invalid types 'int[int]' for array subscript
add(dp[i][j],dp[i-1][j]);
^
0_0_33797696_20836.cpp:38:46: error: invalid types 'int[int]' for array subscript
for(int i=1;i<=n;i++) add(ans,dp[n][i]);
^
|