Accepted

/in/foo.cc: In function 'int maxfs(int*, int)':
/in/foo.cc:16:2: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if(a[i]>max&&a[i]<0)
  ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:2: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if(a[i]>max&&a[i]<0)
  ^~
/in/foo.cc:5:6: note: 'max' was declared here
  int max;
      ^~~
/in/foo.cc:16:2: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if(a[i]>max&&a[i]<0)
  ^~
/in/foo.cc:5:6: note: 'max' was declared here
  int max;
      ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 396.0 KiB
#2 Accepted 1ms 340.0 KiB
#3 Accepted 1ms 340.0 KiB
#4 Accepted 1ms 336.0 KiB
#5 Accepted 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1050 A9-3 数组中最大的负数
语言
C++
递交时间
2024-02-05 22:01:03
评测时间
2024-02-05 22:01:03
评测机
分数
100
总耗时
7ms
峰值内存
396.0 KiB