记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:21:9: warning: 'fgets' writing 10001 bytes into a region of size 10000 overflows the destination [-Wstringop-overflow=]
   21 |         fgets(s2,10001,stdin);
      |         ^~~~~~~~~~~~~~~~~~~~~
foo.c:19:14: note: destination object 's2' of size 10000
   19 |         char s2[10000];
      |              ^~
In file included from foo.c:1:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:592:14: note: in a call to function 'fgets' declared with attribute 'access (write_only, 1, 2)'
  592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Binary files usrout and answer 2ms 284.0 KiB
#2 Wrong Answer Binary files usrout and answer 2ms 284.0 KiB
#3 Wrong Answer Binary files usrout and answer 1ms 284.0 KiB
#4 Wrong Answer Binary files usrout and answer 1ms 284.0 KiB
#5 Wrong Answer Binary files usrout and answer 1ms 284.0 KiB

信息

递交者
类型
递交
题目
A8-4 字符串的连接函数
比赛
2023 程序设计与竞赛(作业6:走向综合)
语言
C
递交时间
2023-10-28 11:16:26
评测时间
2023-10-28 11:16:26
评测机
分数
0
总耗时
10ms
峰值内存
284.0 KiB