0_0_18895448_25731.cpp: In function 'int main()': 0_0_18895448_25731.cpp:25:15: error: 'num' was not declared in this scope dp[0][num]=0; ^