0_0_15904030_111.cpp: In function 'int main()': 0_0_15904030_111.cpp:65:13: error: 'ans' was not declared in this scope ans=max(dp[n][i],ans); ^ 0_0_15904030_111.cpp:67:15: error: 'ans' was not declared in this scope cout<<ans<<endl; ^