/in/foo.c: In function 'main':
/in/foo.c:12:7: error: 'max' redeclared as different kind of symbol
void max(int a[],int i);
^~~
/in/foo.c:11:6: note: previous definition of 'max' was here
int max=a[4];
^~~
/in/foo.c: In function 'max':
/in/foo.c:21:6: error: lvalue required as left operand of assignment
max=a[i];
^
/in/foo.c:25:10: warning: comparison between pointer and integer
if(a[i]>max)
^
/in/foo.c:26:6: error: lvalue required as left operand of assignment
max=a[i];
^
/in/foo.c:30:2: warning: implicit declaration of function 'pirntf' [-Wimplicit-function-declaration]
pirntf("%d",max);
^~~~~~