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