/in/foo.cc: In function 'int main()':
/in/foo.cc:30:26: error: expected primary-expression before ']' token
max[imax++]=MAX(n,a[]);
^
/in/foo.cc:31:26: error: expected primary-expression before ']' token
min[imin++]=MIN(n,a[]);
^
/in/foo.cc:37:16: error: expected primary-expression before ']' token
OUTPUT(max[] , imax , imin[] , imin);
^
/in/foo.cc:37:32: error: expected primary-expression before ']' token
OUTPUT(max[] , imax , imin[] , imin);
^
/in/foo.cc: At global scope:
/in/foo.cc:62:47: error: conflicting declaration 'int imin'
void OUTPUT(int max[],int imax,int imin[],int imin)
^~~~
/in/foo.cc:62:41: note: previous declaration as 'int* imin'
void OUTPUT(int max[],int imax,int imin[],int imin)
^
/in/foo.cc: In function 'void OUTPUT(int*, int, int*)':
/in/foo.cc:68:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(int i=1;i<imin;i++)
^~~~
/in/foo.cc:70:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cout<<min[i];
^