foo.c: In function 'main':
foo.c:6:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
6 | scanf("%d %d",x,y);
| ~^ ~
| | |
| int * int
foo.c:6:20: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
6 | scanf("%d %d",x,y);
| ~^ ~
| | |
| | int
| int *
foo.c:6:9: warning: 'x' is used uninitialized [-Wuninitialized]
6 | scanf("%d %d",x,y);
| ^~~~~~~~~~~~~~~~~~
foo.c:6:9: warning: 'y' is used uninitialized [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务