记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:9: error: too few arguments to function 'fgets'
    8 |         fgets(a);
      |         ^~~~~
In file included from foo.c:1:
/nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-dev/include/stdio.h:592:14: note: declared here
  592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
foo.c:9:9: error: too few arguments to function 'fgets'
    9 |         fgets(b);
      |         ^~~~~
In file included from foo.c:1:
/nix/store/rffag931pvbdiabwwa539wnwg1piqpx0-glibc-2.35-163-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)提供评测服务

信息

递交者
类型
递交
题目
A8-1 字符串的输出函数
语言
C
递交时间
2022-10-05 17:39:52
评测时间
2022-10-05 17:39:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes