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