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