记录详情

Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:9:13: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
    9 |         gets(a);
      |         ~~~~^~~
In file included from /nix/gcc-14-20241116/include/c++/14-20241116/cstdio:42,
                 from /nix/gcc-14-20241116/include/c++/14-20241116/ext/string_conversions.h:45,
                 from /nix/gcc-14-20241116/include/c++/14-20241116/bits/basic_string.h:4154,
                 from /nix/gcc-14-20241116/include/c++/14-20241116/string:54,
                 from /nix/gcc-14-20241116/include/c++/14-20241116/bitset:52,
                 from stdc++.h:52:
/nix/glibc-2.40-66-dev/include/stdio.h:667:14: note: declared here
  667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/nix/binutils-2.43.1/bin/ld: /tmp/ccGv0JkM.o: in function `main':
foo.cc:(.text.startup+0x18): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 2ms 500.0 KiB
#2 Accepted 2ms 504.0 KiB
#3 Accepted 2ms 504.0 KiB
#4 Accepted 2ms 504.0 KiB
#5 Wrong Answer On line 1: Read [i, expect Ai. 2ms 500.0 KiB

信息

递交者
类型
递交
比赛
2025年春 南师大《程序设计与竞赛》作业赛第五场
语言
C++
递交时间
2025-04-12 16:21:34
评测时间
2025-04-12 16:21:34
评测机
分数
80
总耗时
13ms
峰值内存
504.0 KiB