0_0_38638142_573.cpp: In function 'void run()': 0_0_38638142_573.cpp:47:31: error: 'j' was not declared in this scope ans = max(ans,dp[n+1][j][i]); ^