foo.c: In function 'any':
foo.c:40:21: warning: variable 'ans' set but not used [-Wunused-but-set-variable]
40 | int ans;
| ^~~
foo.c:51:16: warning: 'ans' is used uninitialized [-Wuninitialized]
51 | return ans;
| ^~~
foo.c:36:13: note: 'ans' was declared here
36 | int ans;
| ^~~
foo.c: In function 'count':
foo.c:32:16: warning: 'cnt' may be used uninitialized [-Wmaybe-uninitialized]
32 | return cnt;
| ^~~
foo.c:21:13: note: 'cnt' was declared here
21 | int cnt;
| ^~~
foo.c: In function 'main':
foo.c:87:25: warning: 'cnt' may be used uninitialized [-Wmaybe-uninitialized]
87 | printf("%d\n",a);
| ^~~~~~~~~~~~~~~~
foo.c:21:13: note: 'cnt' was declared here
21 | int cnt;
| ^~~
[Hydro](https://hydro.ac)提供评测服务