Main.cc: In function 'int main()': Main.cc:7:10: error: redeclaration of 'int a [n]' int a[n]; ^ Main.cc:6:6: note: 'int a [n]' previously declared here int a[n]; ^