foo.cc: In function 'int main()':
foo.cc:78:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
78 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:82:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
82 | scanf("%d",&a[i].opt);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:83:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
83 | if(a[i].opt==1||a[i].opt==5)scanf("%d",&a[i].num),s[++cnt]=a[i].num;
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:84:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
84 | if(a[i].opt<=4)scanf("%d",&a[i].val),a[i].val=(a[i].val%mod+mod)%mod,a[i].inv=quick(a[i].val,mod-2);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:95:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
95 | scanf("%d",&t);
| ~~~~~^~~~~~~~~
foo.cc:99:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
99 | scanf("%d%d",&ai,&bi);
| ~~~~~^~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务