记录详情

Wrong Answer

foo.c: In function 'CountWord':
foo.c:32:13: warning: unused variable 'n' [-Wunused-variable]
   32 |         int n=0;
      |             ^
foo.c: In function 'main':
foo.c:42:9: warning: 'fgets' writing 100001 bytes into a region of size 100000 overflows the destination [-Wstringop-overflow=]
   42 |         fgets(s0,N+1,stdin);
      |         ^~~~~~~~~~~~~~~~~~~
foo.c:41:14: note: destination object 's0' of size 100000
   41 |         char s0[N];
      |              ^~
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 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 2ms 284.0 KiB
#4 Wrong Answer Read 0, expect 3. 2ms 284.0 KiB
#5 Wrong Answer Read 0, expect 5. 1ms 284.0 KiB

信息

递交者
类型
递交
语言
C
递交时间
2023-10-31 16:53:29
评测时间
2023-10-31 16:53:29
评测机
分数
60
总耗时
10ms
峰值内存
284.0 KiB