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