Wrong Answer

foo.cc: In function 'int xzs(int*, int)':
foo.cc:12:16: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
   12 |         return xb;
      |                ^~
foo.cc:7:17: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
    7 |                 if(a[i]<min&&a[i]>0)
      |                 ^~
foo.cc: In function 'int main()':
foo.cc:23:39: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
   23 |         cout<<xzs(a,n1)<<' '<<xzs(b,n2);
      |                                       ^
foo.cc:7:17: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
    7 |                 if(a[i]<min&&a[i]>0)
      |                 ^~
foo.cc:5:13: note: 'min' was declared here
    5 |         int min,xb;
      |             ^~~
foo.cc:23:26: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
   23 |         cout<<xzs(a,n1)<<' '<<xzs(b,n2);
      |                          ^~~
foo.cc:7:17: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
    7 |                 if(a[i]<min&&a[i]>0)
      |                 ^~
foo.cc:5:13: note: 'min' was declared here
    5 |         int min,xb;
      |             ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 4210096, expect 1. 4ms 412.0 KiB
#2 Wrong Answer Read 4210096, expect 3. 4ms 412.0 KiB
#3 Wrong Answer Read 4210096, expect 8. 4ms 412.0 KiB
#4 Wrong Answer Read 4210096, expect 4. 3ms 412.0 KiB
#5 Wrong Answer Read 4210096, expect 4. 5ms 412.0 KiB

信息

递交者
类型
递交
题目
P1068 A9-2 数组中最小正数的下标
语言
C++
递交时间
2023-07-19 22:42:37
评测时间
2023-07-19 22:42:37
评测机
分数
0
总耗时
21ms
峰值内存
412.0 KiB