记录详情

Time Exceeded

foo.c: In function 'FindMaxNeg':
foo.c:6:15: warning: statement with no effect [-Wunused-value]
    6 |  for(i=1;i++;i<n)
      |              ~^~
foo.c:5:19: warning: unused variable 'j' [-Wunused-variable]
    5 |  int max=a[0],i,k,j;
      |                   ^
foo.c:5:17: warning: unused variable 'k' [-Wunused-variable]
    5 |  int max=a[0],i,k,j;
      |                 ^
foo.c: At top level:
foo.c:14:6: warning: return type of 'main' is not 'int' [-Wmain]
   14 | void main()
      |      ^~~~
foo.c: In function 'main':
foo.c:18:15: warning: statement with no effect [-Wunused-value]
   18 |  for(i=0;i++;i<n1)
      |              ~^~~
foo.c:22:16: warning: statement with no effect [-Wunused-value]
   22 |   for(i=0;i++;i<n2)
      |               ~^~~
foo.c:17:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   17 |  scanf("%d %d",&n1,&n2);
      |  ^~~~~~~~~~~~~~~~~~~~~~
foo.c:20:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   20 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:24:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   24 |   scanf("%d",&b[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c: In function 'FindMaxNeg':
foo.c:6:11: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations]
    6 |  for(i=1;i++;i<n)
      |          ~^~
foo.c:6:2: note: within this loop
    6 |  for(i=1;i++;i<n)
      |  ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1099ms ≥256.0 KiB
#2 Time Exceeded ≥1099ms ≥256.0 KiB
#3 Time Exceeded ≥1100ms ≥256.0 KiB
#4 Time Exceeded ≥1101ms ≥256.0 KiB
#5 Time Exceeded ≥1100ms ≥256.0 KiB

信息

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