记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:9: error: too few arguments to function 'fgets'
    5 |         fgets(secret);
      |         ^~~~~
In file included from foo.c:1:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:592:14: note: declared here
  592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
foo.c:6:9: error: too few arguments to function 'fgets'
    6 |         fgets(s);
      |         ^~~~~
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:592:14: note: declared here
  592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
4-7 密钥表与替代密码
语言
C
递交时间
2023-11-09 19:35:01
评测时间
2023-11-09 19:35:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes