0_0_13315684_15655.cpp: In function 'int main()': 0_0_13315684_15655.cpp:43:21: error: 'i' was not declared in this scope cout<<dp[m][i]<<endl; ^