记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:23:15: warning: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
     fgets(s1, stdin);
               ^~~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:624:14: note: expected 'int' but argument is of type 'struct _IO_FILE *'
 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
              ^~~~~
/in/foo.c:23:5: error: too few arguments to function 'fgets'
     fgets(s1, stdin);
     ^~~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:624:14: note: declared here
 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
              ^~~~~
/in/foo.c:28:15: warning: passing argument 2 of 'fgets' makes integer from pointer without a cast [-Wint-conversion]
     fgets(s2, stdin);
               ^~~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:624:14: note: expected 'int' but argument is of type 'struct _IO_FILE *'
 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
              ^~~~~
/in/foo.c:28:5: error: too few arguments to function 'fgets'
     fgets(s2, stdin);
     ^~~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:624:14: note: declared here
 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
              ^~~~~

信息

递交者
类型
自测
语言
C
递交时间
2024-11-26 08:26:07
评测时间
2024-11-26 08:26:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes