0_0_30387137_15287.cpp: In function 'int main()': 0_0_30387137_15287.cpp:24:25: error: 'i' was not declared in this scope pre[j - 1] = -inf,dp[i - 1][now] = -inf; ^