foo.cc: In function 'int main()':
foo.cc:6:8: error: expected unqualified-id before '[' token
int a,[105],n; cin>>n;
^
foo.cc:6:22: error: 'n' was not declared in this scope
int a,[105],n; cin>>n;
^
foo.cc:8:11: error: invalid types 'int[int]' for array subscript
cin>>a[i];
^
foo.cc:9:13: error: invalid types 'int[int]' for array subscript
int max=a[0];
^
foo.cc:11:9: error: invalid types 'int[int]' for array subscript
if(a[i]>max)
^
foo.cc:12:11: error: invalid types 'int[int]' for array subscript
max=a[i];
^
[Hydro](https://hydro.ac)提供评测服务