记录详情

Accepted

foo.c: In function 'main':
foo.c:6:5: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
    6 |     gets(str1);
      |     ^~~~
foo.c:10:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%c",str1[i]);
      |         ^~~~~~
foo.c:10:9: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:2:1: note: include '<stdio.h>' or provide a declaration of 'printf'
    1 | #include<string.h>
  +++ |+#include <stdio.h>
    2 | int main()
foo.c:14:9: warning: incompatible implicit declaration of built-in function 'printf'
   14 |         printf("%c",str2[i]);
      |         ^~~~~~
foo.c:14:9: note: include '<stdio.h>' or provide a declaration of 'printf'
/usr/bin/ld: /tmp/ccQMnE1l.o: in function `main':
foo.c:(.text.startup+0x4c): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
比赛
南师大2021程序设计基础课程第四次测验 (2021-12-23)
语言
C
递交时间
2021-12-23 14:34:09
评测时间
2021-12-23 14:34:09
评测机
分数
100
总耗时
9ms
峰值内存
384.0 KiB