Wrong Answer

foo.cc: In function 'void quickSort(int*, int, int)':
foo.cc:90:14: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
   90 |   pos=segment(a,start,pos-1);
      |       ~~~~~~~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:90:14: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
   90 |   pos=segment(a,start,pos-1);
      |       ~~~~~~~^~~~~~~~~~~~~~~
foo.cc:87:6: note: 'pos' was declared here
   87 |  int pos;
      |      ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 78, expect 92. 2ms 384.0 KiB
#2 Wrong Answer Read 56, expect 99. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1166 快速排序
语言
C++
递交时间
2021-12-10 22:14:16
评测时间
2021-12-10 22:14:16
评测机
分数
0
总耗时
4ms
峰值内存
384.0 KiB