Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:8:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
     gets(a);
     ^~~~
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:65:10: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   printf(' ');
          ^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/tmp/ccwG7jTj.o: In function `main':
foo.c:(.text.startup+0x2f): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 1ms 316.0 KiB
#2 Accepted 1ms 248.0 KiB
#3 Accepted 1ms 212.0 KiB
#4 Accepted 1ms 324.0 KiB
#5 Runtime Error 1ms 336.0 KiB

信息

递交者
类型
递交
题目
P1103 6-10 哪个字母对用得最多
语言
C
递交时间
2021-11-14 23:42:56
评测时间
2021-11-14 23:42:56
评测机
分数
80
总耗时
5ms
峰值内存
336.0 KiB