/in/foo.c: In function 'main':
/in/foo.c:5:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%d%d",&n,&m);
^~~~~
/in/foo.c:5:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:5:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:13:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%d %d",find(a,n),find(b,m));
^~~~~~
/in/foo.c:13:2: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:13:2: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:13:2: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d",find(a,n),find(b,m));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:27:6: warning: 'secondmax' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( a[i]>secondmax )
^
/in/foo.c:18:28: note: 'secondmax' was declared here
int i;int t=a[1],p=1; int secondmax,q;
^~~~~~~~~
/in/foo.c:13:2: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d",find(a,n),find(b,m));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:27:6: warning: 'secondmax' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( a[i]>secondmax )
^
/in/foo.c:18:28: note: 'secondmax' was declared here
int i;int t=a[1],p=1; int secondmax,q;
^~~~~~~~~
/in/foo.c: In function 'find':
/in/foo.c:33:9: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized]
return q;
^
/in/foo.c:27:6: warning: 'secondmax' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( a[i]>secondmax )
^