0_0_37252275_4343.cpp: In function 'int main()': 0_0_37252275_4343.cpp:27:4: error: 'ans' was not declared in this scope ans=max(ans,dp[i]); ^ 0_0_37252275_4343.cpp:29:3: error: 'ans' was not declared in this scope ans=0; ^