0_0_25285397_29249.cpp: In function 'int main()': 0_0_25285397_29249.cpp:32:31: error: 'ans' was not declared in this scope dp[i][j]+=max(ans,dp[i][j-1]); ^