记录详情

Time Exceeded

/in/foo.c: In function 'FindMaxNeg':
/in/foo.c:6:15: warning: statement with no effect [-Wunused-value]
  for(i=1;i++;i<n)
              ~^~
/in/foo.c:5:19: warning: unused variable 'j' [-Wunused-variable]
  int max=a[0],i,k,j;
                   ^
/in/foo.c:5:17: warning: unused variable 'k' [-Wunused-variable]
  int max=a[0],i,k,j;
                 ^
/in/foo.c: At top level:
/in/foo.c:13:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^~~~
/in/foo.c: In function 'main':
/in/foo.c:17:15: warning: statement with no effect [-Wunused-value]
  for(i=0;i++;i<n1)
              ~^~~
/in/foo.c:21:16: warning: statement with no effect [-Wunused-value]
   for(i=0;i++;i<n2)
               ~^~~
/in/foo.c: In function 'FindMaxNeg':
/in/foo.c:6:11: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations]
  for(i=1;i++;i<n)
          ~^~
/in/foo.c:6:2: note: within this loop
  for(i=1;i++;i<n)
  ^~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥1002ms ≥248.0 KiB
#2 Time Exceeded ≥1001ms ≥208.0 KiB
#3 Time Exceeded ≥1000ms ≥196.0 KiB
#4 Time Exceeded ≥1001ms ≥204.0 KiB
#5 Time Exceeded ≥1004ms ≥252.0 KiB

信息

递交者
类型
递交
题目
A9-3 数组中最大的负数
语言
C
递交时间
2022-01-11 19:14:15
评测时间
2022-01-11 19:14:15
评测机
分数
0
总耗时
≥5011ms
峰值内存
≥252.0 KiB