foo.cc: In function 'int main()':
foo.cc:41:5: warning: unused variable 'sum' [-Wunused-variable]
41 | int sum = 0;
| ^~~
foo.cc:16:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%d%d", &p, &k);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:18:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%s", &s0[i][1]);
| ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:25:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d", &s);
| ~~~~~^~~~~~~~~~
foo.cc:27:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%s", d[i]);
| ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务