Wrong Answer

foo.cc: In function 'int maxa(int*, int)':
foo.cc:8:16: warning: 'xia' may be used uninitialized [-Wmaybe-uninitialized]
    8 |         return xia;
      |                ^~~
foo.cc:4:25: note: 'xia' was declared here
    4 |         int ans=INT_MIN,xia;
      |                         ^~~
foo.cc: In function 'int main()':
foo.cc:20:29: warning: 'xia' may be used uninitialized [-Wmaybe-uninitialized]
   20 |         cout<<a[x]<<' '<<a[x]+1<<endl;
      |                          ~~~^
foo.cc:4:25: note: 'xia' was declared here
    4 |         int ans=INT_MIN,xia;
      |                         ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 9, expect 2. 4ms 412.0 KiB
#2 Wrong Answer Read 9, expect 1. 4ms 412.0 KiB
#3 Wrong Answer Read 2, expect 7. 2ms 336.0 KiB
#4 Wrong Answer Read 2, expect 8. 3ms 412.0 KiB
#5 Wrong Answer Read 65, expect 997. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1492 C7 差距最大的相邻数
比赛
2023.8高级班结业模拟测试
语言
C++
递交时间
2023-08-09 09:14:06
评测时间
2023-08-09 09:14:06
评测机
分数
0
总耗时
18ms
峰值内存
412.0 KiB