0_0_22077557_27079.cpp: In function 'void work()': 0_0_22077557_27079.cpp:22:29: error: 'j' was not declared in this scope if(i==1&&j<=2)upd(ans,dp[i][j]); ^