0_0_29180862_12971.cpp: In function 'int main()': 0_0_29180862_12971.cpp:48:23: error: 'i' was not declared in this scope if(!a[i]) {dp[0] = n + 1; break; } ^