记录详情

Accepted

foo.c: In function ‘main’:
foo.c:7:9: warning: ‘gets’ is deprecated [-Wdeprecated-declarations]
    7 |         gets(num);
      |         ^~~~
In file included from foo.c:1:
/nix/glibc-2.39-52-dev/include/stdio.h:667:14: note: declared here
  667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.c:9:9: warning: ‘gets’ is deprecated [-Wdeprecated-declarations]
    9 |         gets(n);
      |         ^~~~
/nix/glibc-2.39-52-dev/include/stdio.h:667:14: note: declared here
  667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/nix/binutils-2.42/bin/ld: /tmp/ccYQbd8x.o: in function `main':
foo.c:(.text.startup+0xb): warning: the `gets' function is dangerous and should not be used.
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 1ms 288.0 KiB
#2 Accepted 1ms 288.0 KiB
#3 Accepted 1ms 324.0 KiB
#4 Accepted 1ms 288.0 KiB
#5 Accepted 1ms 288.0 KiB

信息

递交者
类型
递交
题目
P1095 xf2-8大写字母个数
语言
C
递交时间
2024-08-21 10:43:29
评测时间
2024-08-21 10:43:29
评测机
分数
100
总耗时
6ms
峰值内存
324.0 KiB