foo.c: In function 'main':
foo.c:40:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^~~~~~~~~~~~~~~~~~~~~
foo.c:41:35: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= 10; ++i) scanf("%d", &e[i]);
^~~~~~~~~~~~~~~~~~
foo.c:43:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &pep[i].w);
^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务