0_0_31788367_8670.cpp: In function 'int main()': 0_0_31788367_8670.cpp:41:2: error: 'dp' was not declared in this scope dp[0]=1; ^