0_0_15814496_13107.cpp: In function 'int main()': 0_0_15814496_13107.cpp:44:35: error: invalid types 'long long int[int]' for array subscript dp[i][j][k]=max(dp[j][k],dp[j-(a[i])/2][k-1]+w[i]); ^