记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:14:9: warning: 'ch' is used uninitialized [-Wuninitialized]
   14 |         scanf(ch);
      |         ^~~~~~~~~
In file included from /nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/features.h:491,
                 from /nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/bits/libc-header-start.h:33,
                 from /nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:27,
                 from foo.c:1:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:437:12: note: by argument 1 of type 'const char * restrict' to 'scanf' declared here
  437 | extern int __REDIRECT (scanf, (const char *__restrict __format, ...),
      |            ^~~~~~~~~~
foo.c:13:14: note: 'ch' declared here
   13 |         char ch[100000], sh[100000];
      |              ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 14. 1ms 284.0 KiB

信息

递交者
类型
自测
题目
A8-2 字符串的统计函数
语言
C
递交时间
2023-10-28 15:40:15
评测时间
2023-10-28 15:40:15
评测机
分数
0
总耗时
1ms
峰值内存
284.0 KiB