Main.cc: In function ‘int main()’: Main.cc:14:45: error: incompatible types in assignment of ‘const int’ to ‘int [105]’ dp[j]=max(dp[i-1][j],dp[i-1][j-a[i]]+p[i]); ^