0_0_38033595_23015.cpp: In function 'void solve()': 0_0_38033595_23015.cpp:23:10: error: 'i' was not declared in this scope if(a[i]!=-1) ^