0_0_29366199_23121.cpp: In function 'int main()': 0_0_29366199_23121.cpp:25:24: error: 'a' was not declared in this scope scanf("%d",&a[i]); ^