/in/foo.c: In function 'main':
/in/foo.c:20:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
gets(a);
^~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.c:20:10: warning: passing argument 1 of 'gets' from incompatible pointer type [-Wincompatible-pointer-types]
gets(a);
^
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:640:14: note: expected 'char *' but argument is of type 'int *'
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.c:21:6: error: conflicting types for 'a'
int a=Findmax(a,m);
^
/in/foo.c:10:6: note: previous declaration of 'a' was here
int a[10],m=10;
^
/in/foo.c:21:16: warning: passing argument 1 of 'Findmax' makes pointer from integer without a cast [-Wint-conversion]
int a=Findmax(a,m);
^
/in/foo.c:2:5: note: expected 'int *' but argument is of type 'int'
int Findmax(int a[],int m);
^~~~~~~
/in/foo.c:22:6: error: redefinition of 'm'
int m=Remove(a,m,k);
^
/in/foo.c:10:12: note: previous definition of 'm' was here
int a[10],m=10;
^
/in/foo.c:22:15: warning: passing argument 1 of 'Remove' makes pointer from integer without a cast [-Wint-conversion]
int m=Remove(a,m,k);
^
/in/foo.c:3:6: note: expected 'int *' but argument is of type 'int'
int Remove(int a[],int n, int k);
^~~~~~
/in/foo.c:23:16: warning: passing argument 1 of 'Findmax' makes pointer from integer without a cast [-Wint-conversion]
int b=Findmax(a,m);
^
/in/foo.c:2:5: note: expected 'int *' but argument is of type 'int'
int Findmax(int a[],int m);
^~~~~~~
/in/foo.c: In function 'Findmax':
/in/foo.c:29:10: error: 'i' undeclared (first use in this function)
int max=i
^
/in/foo.c:29:10: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:30:2: error: expected ',' or ';' before 'for'
for(int i=1; i<n; i++)
^~~
/in/foo.c:30:17: error: 'n' undeclared (first use in this function)
for(int i=1; i<n; i++)
^
/in/foo.c:30:23: error: expected ';' before ')' token
for(int i=1; i<n; i++)
^
/in/foo.c:30:23: error: expected statement before ')' token