foo.c: In function 'main':
foo.c:12:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
printf("%s", x);
~^
%d
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("%s", &x);
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务