Runtime Error

/in/foo.cc: In function 'int FindMaxNeg(int*, int)':
/in/foo.cc:16:1: 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:1: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
 if(a[i]>max&&a[i]<0)
 ^~
/in/foo.cc:5:5: note: 'max' was declared here
 int max;
     ^~~
/in/foo.cc:16:1: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
 if(a[i]>max&&a[i]<0)
 ^~
/in/foo.cc:5:5: note: 'max' was declared here
 int max;
     ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 356.0 KiB
#2 Runtime Error 11ms 396.0 KiB
#3 Time Exceeded ≥1000ms ≥404.0 KiB
#4 Time Exceeded ≥1003ms ≥376.0 KiB
#5 Time Exceeded ≥1000ms ≥340.0 KiB
#6 Time Exceeded ≥1000ms ≥336.0 KiB
#7 Time Exceeded ≥1007ms ≥328.0 KiB
#8 Time Exceeded ≥1015ms ≥340.0 KiB
#9 Time Exceeded ≥1001ms ≥372.0 KiB
#10 Time Exceeded ≥1001ms ≥296.0 KiB

信息

递交者
类型
递交
题目
P2763 数字和
语言
C++
递交时间
2024-07-20 17:44:53
评测时间
2024-07-20 17:44:53
评测机
分数
0
总耗时
8046ms
峰值内存
404.0 KiB