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