/in/foo.c: In function 'main':
/in/foo.c:6:15: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'int *' [-Wformat=]
6 | scanf("a=%f,b=%f", &a, &b);
| ~^ ~~
| | |
| float * int *
| %d
/in/foo.c:6:20: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'int *' [-Wformat=]
6 | scanf("a=%f,b=%f", &a, &b);
| ~^ ~~
| | |
| float * int *
| %d
/in/foo.c:4:24: warning: unused variable 'd' [-Wunused-variable]
4 | int a, b, s = 0, i, c, d = 1;
| ^
/in/foo.c: In function 'fn':
/in/foo.c:17:16: warning: variable 'b' set but not used [-Wunused-but-set-variable]
17 | int a = 1, b = 1, i, c;
| ^
/in/foo.c:17:9: warning: variable 'a' set but not used [-Wunused-but-set-variable]
17 | int a = 1, b = 1, i, c;
| ^
/in/foo.c:15:5: warning: infinite recursion detected [-Winfinite-recursion]
15 | int fn(int x)
| ^~
/in/foo.c:18:9: note: recursive call
18 | a = fn(1);
| ^~~~~