0_0_36461290_22861.cpp: In function 'int main()': 0_0_36461290_22861.cpp:75:15: error: 'i' was not declared in this scope else cout<<dp[i]<<" "; ^