foo.c: In function 'main':
foo.c:17:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'float *' [-Wformat=]
17 | scanf("%d%d",&a,&b);
| ~^ ~~
| | |
| | float *
| int *
| %e
foo.c:17:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'float *' [-Wformat=]
17 | scanf("%d%d",&a,&b);
| ~^ ~~
| | |
| int * float *
| %e
foo.c: In function 'fib':
foo.c:12:16: warning: 'a3' may be used uninitialized [-Wmaybe-uninitialized]
12 | return a3;
| ^~
foo.c:4:23: note: 'a3' was declared here
4 | int a1=1,a2=1,a3,count=0;
| ^~
In function 'fib',
inlined from 'main' at foo.c:21:11:
foo.c:12:16: warning: 'a3' may be used uninitialized [-Wmaybe-uninitialized]
12 | return a3;
| ^~
foo.c: In function 'main':
foo.c:4:23: note: 'a3' was declared here
4 | int a1=1,a2=1,a3,count=0;
| ^~
In function 'fib',
inlined from 'main' at foo.c:21:20:
foo.c:12:16: warning: 'a3' may be used uninitialized [-Wmaybe-uninitialized]
12 | return a3;
| ^~
foo.c: In function 'main':
foo.c:4:23: note: 'a3' was declared here
4 | int a1=1,a2=1,a3,count=0;
| ^~
[Hydro](https://hydro.ac)提供评测服务