/in/foo.cc: In function 'int main()':
/in/foo.cc:21:12: error: invalid types 'int[int]' for array subscript
dp[i][j]=max(dp[i-1][j],dp[i][j-1]);
^
/in/foo.cc:21:27: error: invalid types 'int[int]' for array subscript
dp[i][j]=max(dp[i-1][j],dp[i][j-1]);
^
/in/foo.cc:21:38: error: invalid types 'int[int]' for array subscript
dp[i][j]=max(dp[i-1][j],dp[i][j-1]);
^
/in/foo.cc:23:13: error: invalid types 'int[int]' for array subscript
dp[i][j]=max(dp[i][j],dp[i-1][j-1]+1);
^
/in/foo.cc:23:26: error: invalid types 'int[int]' for array subscript
dp[i][j]=max(dp[i][j],dp[i-1][j-1]+1);
^
/in/foo.cc:23:39: error: invalid types 'int[int]' for array subscript
dp[i][j]=max(dp[i][j],dp[i-1][j-1]+1);
^
/in/foo.cc:26:16: error: invalid types 'int[int]' for array subscript
cout<<dp[n][n]<<'\n';
^