foo.c: In function 'main':
foo.c:11:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'char *' [-Wformat=]
scanf("%d", &x);
~^ ~~
%hhd
foo.c:7:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~
foo.c:8:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x1);
^~~~~~~~~~~~~~~~
foo.c:11:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务