foo.cc: In function 'int main()':
foo.cc:85:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&q);
~~~~~^~~~~~~~~~~~~~
foo.cc:91:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;++i) {scanf("%d",a+i);a[i]=(a[i]%mod+mod)%mod;}
~~~~~^~~~~~~~~~
foo.cc:96:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",op);
~~~~~^~~~~~~~~
foo.cc:97:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&l,&r);
~~~~~^~~~~~~~~~~~~~
foo.cc:98:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
if(op[0]=='I'){scanf("%d",&x);change_add(1,l,r,x);}
~~~~~^~~~~~~~~
foo.cc:100:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
else {scanf("%d",&x);printf("%d\n",ask(1,l,r).f[x]);}
~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务