0_0_18754128_2794.cpp: In function 'void solve()': 0_0_18754128_2794.cpp:20:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++)dp[i]=N; ^