0_0_14165348_30799.cpp: In function 'int main()': 0_0_14165348_30799.cpp:30:27: error: invalid types 'int[int]' for array subscript printf("%d\n",dp[k][n][W]); ^