0_0_33473823_28246.cpp: In function 'void solve()': 0_0_33473823_28246.cpp:28:3: error: 'ans' was not declared in this scope ans+=dp[cur][0]; ^