记录详情

Wrong Answer

foo.cc: In function 'int FindMaxNeg(Node*)':
foo.cc:36:16: warning: 'max' may be used uninitialized [-Wmaybe-uninitialized]
   36 |         return max;
      |                ^~~
foo.cc:28:13: note: 'max' was declared here
   28 |         int max;
      |             ^~~
foo.cc: In function 'int main()':
foo.cc:48:15: warning: 'max' may be used uninitialized [-Wmaybe-uninitialized]
   48 |         printf("%d %d\n",a,b);
      |         ~~~~~~^~~~~~~~~~~~~~~
foo.cc:28:13: note: 'max' was declared here
   28 |         int max;
      |             ^~~
foo.cc:48:15: warning: 'max' may be used uninitialized [-Wmaybe-uninitialized]
   48 |         printf("%d %d\n",a,b);
      |         ~~~~~~^~~~~~~~~~~~~~~
foo.cc:28:13: note: 'max' was declared here
   28 |         int max;
      |             ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer Read -15, expect -3. 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Wrong Answer Read -15, expect -3. 3ms 412.0 KiB
#5 Wrong Answer Read -3, expect -2. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
A9-3 数组中最大的负数
比赛
2023 程序设计与竞赛(作业8:链表的世界)
语言
C++
递交时间
2023-11-25 16:39:39
评测时间
2023-11-25 16:39:39
评测机
分数
40
总耗时
20ms
峰值内存
412.0 KiB