Main.cc: In function 'int main()':
Main.cc:7:11: error: 'a' was not declared in this scope
cin>>a[i];
^
Main.cc:11:6: error: 'a' was not declared in this scope
a[i+1]=a[i];
^
Main.cc:13:2: error: 'a' was not declared in this scope
a[4]=m;
^