0_0_21609008_23652.cpp: In function 'int main()': 0_0_21609008_23652.cpp:47:32: error: 'd' was not declared in this scope dp[j+i] += d[j]; ^