foo.cc: In function 'int main()':
foo.cc:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:18:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d", &a[m * (i - 1) + j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d", &T);
| ~~~~~^~~~~~~~~~
foo.cc:25:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | for (int i = 1; i <= T; i ++ ) scanf("%d", &t[i]);
| ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务