foo.cc: In function 'int main()':
foo.cc:24:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%d", &s[i]);
| ~~~~~^~~~~~~~~~~~~
foo.cc:27:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%d%d%d", &u, &v, &w);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:31:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
31 | scanf("%d", &q);
| ~~~~~^~~~~~~~~~
foo.cc:35:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
35 | scanf("%d%d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:25:27: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | for (int i = 0; i < m; i++)
| ~~^~~
[Hydro](https://hydro.ac)提供评测服务