记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:17:14: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
     int *a = malloc(n * sizeof(int));
              ^~~~~~
/in/foo.c:17:14: warning: incompatible implicit declaration of built-in function 'malloc'
/in/foo.c:17:14: note: include '<stdlib.h>' or provide a declaration of 'malloc'
/in/foo.c:28:13: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
             free(a);
             ^~~~
/in/foo.c:28:13: warning: incompatible implicit declaration of built-in function 'free'
/in/foo.c:28:13: note: include '<stdlib.h>' or provide a declaration of 'free'
/in/foo.c:40:5: warning: incompatible implicit declaration of built-in function 'free'
     free(a);
     ^~~~
/in/foo.c:40:5: note: include '<stdlib.h>' or provide a declaration of 'free'
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 276.0 KiB
#2 Wrong Answer 1ms 196.0 KiB
#3 Wrong Answer 1ms 208.0 KiB
#4 Wrong Answer 1ms 324.0 KiB
#5 Wrong Answer 0ms 248.0 KiB

信息

递交者
类型
递交
题目
A7-2 数组的极值函数
比赛
泰院2405作业赛第一场
语言
C
递交时间
2024-10-22 16:35:55
评测时间
2024-10-22 16:35:55
评测机
分数
0
总耗时
5ms
峰值内存
324.0 KiB