foo.c: In function 'main':
foo.c:7:17: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
7 | scanf("%d%d,&x1,&x2");
| ~^
| |
| int *
foo.c:7:19: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
7 | scanf("%d%d,&x1,&x2");
| ~^
| |
| int *
foo.c:14:16: warning: too many arguments for format [-Wformat-extra-args]
14 | printf("&d\n %d\n %d",y1,y2,y3);
| ^~~~~~~~~~~~~~
foo.c:10:11: warning: 'x1' is used uninitialized [-Wuninitialized]
10 | y1=x1+x2;
| ~~^~~~~~
foo.c:10:11: warning: 'x2' is used uninitialized [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务