/ Vijos /

记录详情

Runtime Error

/in/foo.c: In function 'listcreate':
/in/foo.c:66:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
         gets(temp->name);
         ^~~~
In file included from /in/foo.c:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.c:79:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
         gets(temp_name);
         ^~~~
In file included from /in/foo.c:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.c:92:20: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[14]' [-Wformat=]
            scanf("%s",(pcur->givelist+k));
                    ^
/tmp/ccfBzknX.o: In function `listcreate':
foo.c:(.text+0xe8): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Runtime Error 2ms 256.0 KiB
#2 Runtime Error 2ms 256.0 KiB
#3 Runtime Error 3ms 256.0 KiB
#4 Runtime Error 3ms 256.0 KiB
#5 Runtime Error 4ms 256.0 KiB
#6 Runtime Error 6ms 256.0 KiB
#7 Runtime Error 3ms 256.0 KiB
#8 Runtime Error 2ms 180.0 KiB
#9 Runtime Error 2ms 180.0 KiB
#10 Runtime Error 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1035 贪婪的送礼者
语言
C
递交时间
2018-08-31 18:10:05
评测时间
2018-08-31 18:10:05
评测机
分数
0
总耗时
33ms
峰值内存
256.0 KiB