记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   10 |         gets(a);
      |         ~~~~^~~
In file included from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/cstdio:42,
                 from stdc++.h:46:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:11:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   11 |         gets(b);
      |         ~~~~^~~
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: /tmp/ccJf5lv9.o: in function `main':
foo.cc:(.text.startup+0xa): warning: the `gets' function is dangerous and should not be used.
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 3ms 412.0 KiB
#2 Wrong Answer Standard answer longer than user output. 4ms 412.0 KiB
#3 Wrong Answer Standard answer longer than user output. 3ms 412.0 KiB
#4 Wrong Answer Standard answer longer than user output. 4ms 412.0 KiB
#5 Wrong Answer Standard answer longer than user output. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
A8-1 字符串的输出函数
语言
C++
递交时间
2023-08-11 10:50:14
评测时间
2023-08-11 10:50:14
评测机
分数
0
总耗时
18ms
峰值内存
412.0 KiB