foo.cc: In function 'int main()':
foo.cc:110:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
110 | scanf("%d%d%d", &n, &m, &p);//n个数字, m个操作, 模为p
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:113:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
113 | scanf("%lld", &a[i]);
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:119:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
119 | scanf("%d", &op);
| ~~~~~^~~~~~~~~~~
foo.cc:124:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
124 | scanf("%d%d%lld", &x, &y, &k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:129:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
129 | scanf("%d%d%lld", &x, &y, &k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:134:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
134 | scanf("%d%d", &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~
Found 3 testcases.
[Hydro](https://hydro.ac)提供评测服务