/ new_bzoj /

记录详情

Runtime Error

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:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int 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)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 18ms 22.457 MiB
#2 Runtime Error Segmentation fault 24ms 27.309 MiB
#3 Runtime Error Segmentation fault 21ms 22.41 MiB
#4 Runtime Error Segmentation fault 20ms 22.562 MiB
#5 Runtime Error Segmentation fault 23ms 23.469 MiB
#6 Runtime Error Segmentation fault 23ms 23.461 MiB
#7 Runtime Error Segmentation fault 37ms 27.438 MiB
#8 Runtime Error Segmentation fault 37ms 27.43 MiB
#9 Runtime Error Segmentation fault 25ms 27.328 MiB
#10 Runtime Error Segmentation fault 23ms 27.426 MiB

信息

递交者
类型
递交
题目
序列操作
语言
C++
递交时间
2021-07-21 22:21:22
评测时间
2021-07-21 22:21:22
评测机
分数
0
总耗时
255ms
峰值内存
27.438 MiB