记录详情

Runtime Error

In function 'void QuickSort(int*, int, int)',
    inlined from 'void MergeSubs(int*, int)' at foo.cc:57:18:
foo.cc:27:19: warning: 'k' may be used uninitialized [-Wmaybe-uninitialized]
   27 |         int p=Area(a,low,high);
      |               ~~~~^~~~~~~~~~~~
foo.cc: In function 'void MergeSubs(int*, int)':
foo.cc:36:17: note: 'k' was declared here
   36 |     int cnt=1,o,k;
      |                 ^
foo.cc:52:9: warning: 'o' may be used uninitialized [-Wmaybe-uninitialized]
   52 |         if(a[i]==o)
      |         ^~
foo.cc:36:15: note: 'o' was declared here
   36 |     int cnt=1,o,k;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer Read 1, expect 2. 4ms 284.0 KiB
#3 Wrong Answer Read 1, expect 2. 3ms 284.0 KiB
#4 Wrong Answer Read 1, expect 2. 3ms 412.0 KiB
#5 Runtime Error Segmentation fault 3ms 412.0 KiB

信息

递交者
类型
递交
题目
A10-2 有序子序列的合并
比赛
2023 程序设计与竞赛(作业5:从数组看集体)
语言
C++
递交时间
2023-10-21 20:50:57
评测时间
2023-10-21 20:50:57
评测机
分数
20
总耗时
20ms
峰值内存
412.0 KiB