记录详情

Accepted

foo.cc: In function 'int FindMaxNeg(Node*)':
foo.cc:25:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   25 |         else
      |         ^~~~
foo.cc:35:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   35 |                 Node *cur=head;
      |                 ^~~~
foo.cc: In function 'int main()':
foo.cc:80:11: warning: statement has no effect [-Wunused-value]
   80 |     for ( p1;p1<a1+n1;p1++)  {cin>>*p1;}
      |           ^~
foo.cc:82:11: warning: statement has no effect [-Wunused-value]
   82 |     for ( p2;p2<a2+n2;p2++)  {cin>>*p2;}
      |           ^~
foo.cc: In function 'int FindMaxNeg(Node*)':
foo.cc:42:12: warning: 'Max_data' may be used uninitialized [-Wmaybe-uninitialized]
   42 |     return Max_data;
      |            ^~~~~~~~
foo.cc:22:13: note: 'Max_data' was declared here
   22 |         int Max_data;
      |             ^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 792.0 KiB
#2 Accepted 7ms 792.0 KiB
#3 Accepted 6ms 792.0 KiB
#4 Accepted 6ms 792.0 KiB
#5 Accepted 6ms 792.0 KiB

信息

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