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:42:34: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0; i < n; ++i) {scanf("%d", &pep[i].w);pep[i].d = i + 1;}
^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务