记录详情

Runtime Error

foo.cc: In function 'int jj(int*, int, int*, int, int*)':
foo.cc:29:9: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return k;
         ^
foo.cc: In function 'int main()':
foo.cc:27:7: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
    c[k++]=a[i]; //c[k]=a[i], k++;
      ~^~
foo.cc:23:6: note: 'k' was declared here
  int k;
      ^
foo.cc:23:6: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 384.0 KiB
#2 Runtime Error Segmentation fault 1ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
递交
比赛
2020苏青奥赛集训营(2021-3-14课后作业)
语言
C++
递交时间
2021-03-15 14:32:48
评测时间
2021-03-15 14:32:48
评测机
分数
0
总耗时
9ms
峰值内存
384.0 KiB