foo.c: In function 'outPut':
foo.c:8:2: warning: control reaches end of non-void function [-Wreturn-type]
8 | }
| ^
foo.c: In function 'main':
foo.c:28:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
foo.c:30:6: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:33:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d",&x);
| ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务