0_0_31041260_5013.cpp: In function 'void finds(int)': 0_0_31041260_5013.cpp:19:22: error: 'i' was not declared in this scope dp[pos][1]+=dp[sid[i].tos][0]; ^