Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:48:15: warning: unused variable 'start' [-Wunused-variable]
  int i,n,a[N],start,end;
               ^~~~~
/in/foo.cc:48:21: warning: unused variable 'end' [-Wunused-variable]
  int i,n,a[N],start,end;
                     ^~~
/in/foo.cc: In function 'void quickSort(int*, int, int)':
/in/foo.cc:41:16: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
   pos = segment(a,start,pos - 1);
         ~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:41:16: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
   pos = segment(a,start,pos - 1);
         ~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:38:6: note: 'pos' was declared here
  int pos;
      ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 356.0 KiB

信息

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