0_0_22443061_21697.cpp: In function 'void solve()': 0_0_22443061_21697.cpp:88:9: error: 'i' was not declared in this scope if(dp[i][j]!=inf) ^