0_0_29299113_23543.cpp: In function 'int main()': 0_0_29299113_23543.cpp:9:20: error: 'i' was not declared in this scope for(int j=1;j<=a[i];j++) ^