记录详情

Compile Error

/in/foo.c:3:6: error: conflicting types for 'remove'
 void remove(char s[],int si,int len);
      ^~~~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:180:12: note: previous declaration of 'remove' was here
 extern int remove (const char *__filename) __THROW;
            ^~~~~~
/in/foo.c: In function 'main':
/in/foo.c:7:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
  gets(s);
  ^~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.c:8:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'char *' [-Wformat=]
  scanf("%d%d",&si,&len);
          ^
/in/foo.c:8:12: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'char *' [-Wformat=]
  scanf("%d%d",&si,&len);
            ^
/in/foo.c: At top level:
/in/foo.c:13:6: error: conflicting types for 'remove'
 void remove(char s[],int si,int len)
      ^~~~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:180:12: note: previous declaration of 'remove' was here
 extern int remove (const char *__filename) __THROW;
            ^~~~~~

信息

递交者
类型
递交
题目
P1063 A8-7 删除字符串中一个子串
比赛
2021(四) 作业第四场:加速赛
语言
C
递交时间
2021-12-08 15:00:28
评测时间
2021-12-08 15:01:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes