记录详情

Accepted

foo.c: In function ‘main’:
foo.c:4:9: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
    4 |         gets(num);
      |         ^~~~
foo.c:7:19: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
    7 |         int len = strlen(ch);
      |                   ^~~~~~
foo.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
  +++ |+#include <string.h>
    1 | int main()
foo.c:7:19: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
    7 |         int len = strlen(ch);
      |                   ^~~~~~
foo.c:7:19: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
foo.c:16:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
   16 |         printf("%s", ch);
      |         ^~~~~~
foo.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
  +++ |+#include <stdio.h>
    1 | int main()
foo.c:16:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
   16 |         printf("%s", ch);
      |         ^~~~~~
foo.c:16:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
/nix/binutils-2.42/bin/ld: /tmp/ccak9wEH.o: in function `main':
foo.c:(.text.startup+0xf): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 1ms 324.0 KiB
#2 Accepted 1ms 288.0 KiB
#3 Accepted 1ms 520.0 KiB
#4 Accepted 1ms 288.0 KiB
#5 Accepted 1ms 520.0 KiB

信息

递交者
类型
递交
题目
P1097 xf2-10倒叙输出
语言
C
递交时间
2024-08-20 23:19:57
评测时间
2024-08-20 23:19:57
评测机
分数
100
总耗时
7ms
峰值内存
520.0 KiB