Main.cc: In function 'int main()':
Main.cc:7:17: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++) cin>>a[i];
^
Main.cc:8:17: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++) if(a[i]>max) max=a[i];
^
Main.cc:9:17: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++) if(a[i]