记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&N,&M);
  ~~~~~^~~~~~~~~~~~~~~
foo.cc:23:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&val[i][0]);
   ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:27:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d",&l,&r),s=LOG[r-l+1],
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
  printf("%d\n",max(val[l][s],val[r-(1<<s)+1][s]));
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 412.0 KiB
#2 Accepted 1ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 1ms 464.0 KiB
#8 Runtime Error Segmentation fault 16ms 9.172 MiB
#9 Runtime Error Segmentation fault 16ms 9.207 MiB
#10 Runtime Error Segmentation fault 16ms 9.137 MiB

信息

递交者
类型
递交
题目
数列区间最大值
题目数据
下载
语言
C++
递交时间
2021-09-22 19:03:02
评测时间
2021-09-22 20:01:14
评测机
分数
70
总耗时
62ms
峰值内存
9.207 MiB