记录详情

Runtime Error

/in/foo.c: In function 'concatAndRepeat':
/in/foo.c:7:25: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
     char* newA = (char*)malloc((lenA + lenB + 1) * sizeof(char));
                         ^~~~~~
/in/foo.c:7:25: warning: incompatible implicit declaration of built-in function 'malloc'
/in/foo.c:7:25: note: include '<stdlib.h>' or provide a declaration of 'malloc'
/in/foo.c:17:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
     free(newB);
     ^~~~
/in/foo.c:17:5: warning: incompatible implicit declaration of built-in function 'free'
/in/foo.c:17:5: note: include '<stdlib.h>' or provide a declaration of 'free'
/in/foo.c: In function 'main':
/in/foo.c:31:5: warning: incompatible implicit declaration of built-in function 'free'
     free(result);
     ^~~~
/in/foo.c:31:5: note: include '<stdlib.h>' or provide a declaration of 'free'
# 状态 耗时 内存占用
#1 Accepted 1ms 248.0 KiB
#2 Accepted 0ms 324.0 KiB
#3 Runtime Error 1ms 452.0 KiB
#4 Runtime Error 1ms 456.0 KiB
#5 Accepted 1ms 252.0 KiB

信息

递交者
类型
递交
题目
2-2 语言的起点
比赛
2024程序设计与竞赛作业赛第三场(七十二变)
语言
C
递交时间
2024-10-20 19:33:20
评测时间
2024-10-20 19:33:20
评测机
分数
60
总耗时
6ms
峰值内存
456.0 KiB