foo.c: In function 'main':
foo.c:6:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%d%d",&n1,&n2);
^~~~~
foo.c:6:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:6:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:11:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%d %d",FindiSecondMax(n1,a),FindiSecondMax(n2,b));
^~~~~~
foo.c:11:2: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:11:2: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:11:2: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d",FindiSecondMax(n1,a),FindiSecondMax(n2,b));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:27:5: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(i==k)
^
foo.c:15:14: note: 'k' was declared here
int max=0,i,k,m;
^
foo.c:11:2: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d",FindiSecondMax(n1,a),FindiSecondMax(n2,b));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:27:5: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(i==k)
^
foo.c:15:14: note: 'k' was declared here
int max=0,i,k,m;
^
foo.c: In function 'FindiSecondMax':
foo.c:35:9: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
return m;
^
foo.c:27:5: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(i==k)
^
[Hydro](https://hydro.ac)提供评测服务