/in/foo.c: In function 'main':
/in/foo.c:9:18: warning: implicit declaration of function 'find' [-Wimplicit-function-declaration]
printf("%d %d", find(a, n1), find(b, n2));
^~~~
/in/foo.c: In function 'find':
/in/foo.c:25:6: warning: unused variable 'cnt' [-Wunused-variable]
int cnt;
^~~
/in/foo.c: In function 'input':
/in/foo.c:20:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.c: In function 'main':
/in/foo.c:35:6: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i] >= num && a[i] < 0)
^
/in/foo.c:24:6: note: 'num' was declared here
int num;
^~~
/in/foo.c:35:6: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i] >= num && a[i] < 0)
^
/in/foo.c:24:6: note: 'num' was declared here
int num;
^~~
/in/foo.c: In function 'find':
/in/foo.c:35:6: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i] >= num && a[i] < 0)
^