/in/foo.cc: In function 'int main()':
/in/foo.cc:9:11: error: invalid types 'int[int]' for array subscript
cin>>a[i];
^
/in/foo.cc:10:9: error: invalid types 'int[int]' for array subscript
if(a[i]>x)
^
/in/foo.cc:11:9: error: invalid types 'int[int]' for array subscript
x=a[i];
^
/in/foo.cc:12:9: error: invalid types 'int[int]' for array subscript
if(a[i]<y)
^
/in/foo.cc:13:9: error: invalid types 'int[int]' for array subscript
y=a[i];
^
/in/foo.cc:17:9: error: invalid types 'int[int]' for array subscript
if(a[i]<k)
^
/in/foo.cc:18:7: error: invalid types 'int[int]' for array subscript
a[i]=y;
^
/in/foo.cc:19:9: error: invalid types 'int[int]' for array subscript
if(a[i]>k)
^
/in/foo.cc:20:7: error: invalid types 'int[int]' for array subscript
a[i]=x;
^
/in/foo.cc:21:12: error: invalid types 'int[int]' for array subscript
cout<<a[i]<<' ';
^