0_0_20099455_2159.cpp: In function 'int main()':
0_0_20099455_2159.cpp:31:42: error: invalid types 'int[int]' for array subscript
tmp=max(tmp,dp[i-1][k]);
^
0_0_20099455_2159.cpp:33:24: error: invalid types 'int[int]' for array subscript
dp[i][j]=max(dp[i][j-1],tmp)+s [j];
^
0_0_20099455_2159.cpp:33:39: error: invalid types 'int[int]' for array subscript
dp[i][j]=max(dp[i][j-1],tmp)+s [j];
^
0_0_20099455_2159.cpp:36:30: error: invalid types 'int[int]' for array subscript
printf("%d\n",dp[m][n]);
^
|