Wrong Answer

foo.cc: In function 'int main()':
foo.cc:48:15: warning: unused variable 'start' [-Wunused-variable]
   48 |  int i,n,a[N],start,end;
      |               ^~~~~
foo.cc:48:21: warning: unused variable 'end' [-Wunused-variable]
   48 |  int i,n,a[N],start,end;
      |                     ^~~
foo.cc: In function 'void quickSort(int*, int, int)':
foo.cc:41:16: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
   41 |   pos = segment(a,start,pos - 1);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:41:16: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
   41 |   pos = segment(a,start,pos - 1);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:38:6: note: 'pos' was declared here
   38 |  int pos;
      |      ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 74, expect 92. 1ms 384.0 KiB
#2 Wrong Answer Read 67, expect 99. 2ms 384.0 KiB

信息

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