记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:24:28: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
         p = (char *)malloc(strlen(A) + strlen(B));
                            ^~~~~~
/in/foo.c:24:28: warning: incompatible implicit declaration of built-in function 'strlen'
/in/foo.c:24:28: note: include '<string.h>' or provide a declaration of 'strlen'
/in/foo.c:25:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
         strcpy(p, B);
         ^~~~~~
/in/foo.c:25:9: warning: incompatible implicit declaration of built-in function 'strcpy'
/in/foo.c:25:9: note: include '<string.h>' or provide a declaration of 'strcpy'
/in/foo.c:26:9: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
         strcat(p, A);
         ^~~~~~
/in/foo.c:26:9: warning: incompatible implicit declaration of built-in function 'strcat'
/in/foo.c:26:9: note: include '<string.h>' or provide a declaration of 'strcat'
# 状态 耗时 内存占用
#1 Accepted 0ms 196.0 KiB
#2 Accepted 0ms 208.0 KiB
#3 Accepted 0ms 328.0 KiB
#4 Accepted 0ms 336.0 KiB
#5 Accepted 0ms 196.0 KiB

信息

递交者
类型
递交
题目
2-2 语言的起点
语言
C
递交时间
2019-04-28 00:50:42
评测时间
2019-04-28 00:50:42
评测机
分数
100
总耗时
4ms
峰值内存
336.0 KiB