记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:57: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:58:2: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
  scanf_s("%c",&t);
  ^~~~~~~
/in/foo.c: In function 'Match2':
/in/foo.c:52:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/tmp/ccCGzSnc.o: In function `main':
foo.c:(.text.startup+0xe): warning: the `gets' function is dangerous and should not be used.
foo.c:(.text.startup+0x21): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
P1061 A8-5 删除字符串中多余的一种字符
比赛
2023 程序设计与基础(语言的世界)
语言
C
递交时间
2023-12-05 16:59:08
评测时间
2023-12-05 16:59:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes