/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:28:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   28 |             else c[i]=c[i-1];sv[i]=sv[i-1];}
      |             ^~~~
foo.cc:28:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   28 |             else c[i]=c[i-1];sv[i]=sv[i-1];}
      |                              ^~
foo.cc:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |  scanf("%d%d%d",&n,&m,&s);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:14:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   14 |         scanf("%d%d",&w[i],&v[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:22:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |     for(int i=1;i<=m;i++){scanf("%d%d",&l[i],&r[i]);}
      |                           ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:35:9: warning: 'ans' is used uninitialized in this function [-Wuninitialized]
   35 |   cout<<ans<<endl;
      |         ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 27196. 5ms 384.0 KiB
#2 Wrong Answer Read 0, expect 444208. 5ms 388.0 KiB
#3 Runtime Error Aborted 4ms 512.0 KiB
#4 Wrong Answer Read 0, expect 1031445. 5ms 384.0 KiB
#5 Runtime Error Segmentation fault 5ms 384.0 KiB
#6 Runtime Error Aborted 6ms 512.0 KiB
#7 Runtime Error Aborted 3ms 512.0 KiB
#8 Runtime Error Segmentation fault 5ms 512.0 KiB
#9 Runtime Error Segmentation fault 5ms 512.0 KiB
#10 Runtime Error Segmentation fault 2ms 392.0 KiB
#11 Runtime Error Segmentation fault 2ms 512.0 KiB
#12 Runtime Error Segmentation fault 4ms 512.0 KiB
#13 Runtime Error Segmentation fault 2ms 512.0 KiB
#14 Runtime Error Segmentation fault 3ms 512.0 KiB
#15 Runtime Error Segmentation fault 4ms 512.0 KiB
#16 Runtime Error Segmentation fault 3ms 512.0 KiB
#17 Runtime Error Segmentation fault 5ms 512.0 KiB
#18 Runtime Error Segmentation fault 3ms 512.0 KiB
#19 Runtime Error Segmentation fault 5ms 512.0 KiB
#20 Runtime Error Segmentation fault 5ms 640.0 KiB

信息

递交者
类型
递交
题目
P1740 聪明的质检员
语言
C++
递交时间
2022-03-07 15:06:56
评测时间
2022-03-07 15:06:56
评测机
分数
0
总耗时
90ms
峰值内存
640.0 KiB