0_0_33732585_23981.cpp: In function 'int main()': 0_0_33732585_23981.cpp:50:7: error: 'j' was not declared in this scope dp[j] += num[i]; ^