记录详情

Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:11:13: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
   11 |         gets(a);
      |         ~~~~^~~
In file included from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/cstdio:42,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/ext/string_conversions.h:45,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/basic_string.h:4154,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/string:54,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/locale_classes.h:40,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/bits/ios_base.h:41,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/ios:44,
                 from /nix/gcc-14.2.1.20250322/include/c++/14.2.1.20250322/ostream:40,
                 from iostream:41:
/nix/glibc-2.40-66-dev/include/stdio.h:667:14: note: declared here
  667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:18:20: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
   18 |         int b[n]={0};
      |                    ^
foo.cc:18:13: note: destination object ‘b.57’ of size 0
   18 |         int b[n]={0};
      |             ^
/nix/binutils-2.44/bin/ld: /tmp/cc3R6yco.o: in function `main':
foo.cc:(.text.startup+0x2e): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 2ms 504.0 KiB
#2 Accepted 2ms 500.0 KiB
#3 Wrong Answer On line 1: Read 56778824, expect 67788124. 2ms 504.0 KiB
#4 Wrong Answer On line 1: Read 5671223395671122..., expect 6711223395671122.... 2ms 504.0 KiB
#5 Wrong Answer On line 1: Read 1112223334445556..., expect 1122233344455566.... 2ms 500.0 KiB

信息

递交者
类型
递交
题目
5-8 留下最大数
比赛
2025年春 南师大《程序设计与竞赛》作业赛第六场
语言
C++
递交时间
2025-05-10 11:24:56
评测时间
2025-05-10 11:24:56
评测机
分数
40
总耗时
12ms
峰值内存
504.0 KiB