提交记录 #402

提交时间:2024-12-03 16:37:00
语言:c 状态:Unaccepted
编译情况:编译成功
code.c: In function ‘main’:
code.c:27:9: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
   27 |         free(result); // 释放动态分配的内存
      |         ^~~~
code.c:27:9: warning: incompatible implicit declaration of built-in function ‘free’
code.c:4:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
    3 | #include <string.h>
  +++ |+#include <stdlib.h>
    4 | 
code.c: In function ‘replaceSubstring’:
code.c:37:23: warning: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Wimplicit-function-declaration]
   37 |     char *pos, *dst = strdup(source); // 复制源字符串以进行修改
      |                       ^~~~~~
      |                       strcmp
code.c:37:23: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
固定测试点#1:
reRuntime Error: - Returning:-11
time 0.039s
memory 556 kB
固定测试点#2:
reRuntime Error: - Returning:-11
time 0.007s
memory 228 kB
固定测试点#3:
reRuntime Error: - Returning:-11
time 0.009s
memory 236 kB
附加测试点暂不可用
... 不可用
time N/A
memory N/A
京ICP备2024093084 号