记录详情

Time Exceeded

foo.c: In function 'main':
foo.c:6:21: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
    6 |     int *a = (int *)malloc(sizeof(int) * n);
      |                     ^~~~~~
foo.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | int main()
foo.c:6:21: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
    6 |     int *a = (int *)malloc(sizeof(int) * n);
      |                     ^~~~~~
foo.c:6:21: note: include '<stdlib.h>' or provide a declaration of 'malloc'
foo.c:35:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
   35 |                 free(e);
      |                 ^~~~
foo.c:35:17: note: include '<stdlib.h>' or provide a declaration of 'free'
foo.c:35:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
foo.c:35:17: note: include '<stdlib.h>' or provide a declaration of 'free'
foo.c:41:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
   41 |     free(a);
      |     ^~~~
foo.c:41:5: note: include '<stdlib.h>' or provide a declaration of 'free'
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Accepted 3ms 284.0 KiB
#3 Accepted 4ms 284.0 KiB
#4 Accepted 16ms 320.0 KiB
#5 Accepted 4ms 284.0 KiB
#6 Accepted 2ms 284.0 KiB
#7 Accepted 1328ms 440.0 KiB
#8 Accepted 170ms 340.0 KiB
#9 Time Exceeded ≥2101ms ≥4.09 MiB
#10 Time Exceeded ≥2101ms ≥4.098 MiB

信息

递交者
类型
递交
题目
P1530 Problem 4A. 计数
比赛
2023秋 悬赏令第四周
语言
C
递交时间
2023-11-04 23:57:59
评测时间
2023-11-04 23:57:59
评测机
分数
80
总耗时
≥5733ms
峰值内存
≥4.098 MiB