记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:87:15: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
   87 |         bubble(b,0,ans);
      |         ~~~~~~^~~~~~~~~
foo.cc:74:22: note: 'ans' was declared here
   74 |         int k = b[0],ans;
      |                      ^~~
foo.cc:65:15: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
   65 |         bubble(a,0,ans);
      |         ~~~~~~^~~~~~~~~
foo.cc:52:22: note: 'ans' was declared here
   52 |         int k = a[0],ans;
      |                      ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer Read 1, expect 2. 5ms 412.0 KiB
#3 Wrong Answer Read 1, expect 2. 4ms 412.0 KiB
#4 Wrong Answer Read 1, expect 2. 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1070 A10-2 有序子序列的合并
语言
C++
递交时间
2023-10-21 19:08:50
评测时间
2023-10-21 19:08:50
评测机
分数
40
总耗时
21ms
峰值内存
412.0 KiB