0_0_17732036_26477.cpp: In function 'int main()': 0_0_17732036_26477.cpp:44:28: error: 'n' was not declared in this scope ans=max(ans,dp[n][j]); ^