记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:11:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
  gets(line);
  ^~~~
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:13:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
  gets(word);
  ^~~~
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:9: warning: unused variable 'k' [-Wunused-variable]
  int n, k;
         ^
/in/foo.c:8:6: warning: unused variable 'n' [-Wunused-variable]
  int n, k;
      ^
/in/foo.c: In function 'isPresent':
/in/foo.c:21:12: warning: unused variable 'status' [-Wunused-variable]
  int i, j, status, n, m;
            ^~~~~~
/in/foo.c:21:9: warning: unused variable 'j' [-Wunused-variable]
  int i, j, status, n, m;
         ^
/tmp/ccfw9pZQ.o: In function `main':
foo.c:(.text.startup+0x1e): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 236.0 KiB
#2 Wrong Answer 1ms 208.0 KiB
#3 Wrong Answer 1ms 196.0 KiB
#4 Runtime Error 2ms 316.0 KiB
#5 Runtime Error 1ms 324.0 KiB
#6 Runtime Error 1ms 316.0 KiB
#7 Runtime Error 1ms 316.0 KiB
#8 Runtime Error 1ms 340.0 KiB
#9 Runtime Error 1ms 320.0 KiB
#10 Runtime Error 1ms 316.0 KiB
#11 Runtime Error 1ms 328.0 KiB
#12 Runtime Error 1ms 324.0 KiB
#13 Runtime Error 1ms 324.0 KiB

信息

递交者
类型
递交
题目
P1290 C. Young Man Do Not Say Five
比赛
南京师范大学2021年11月程序设计竞赛
语言
C
递交时间
2021-11-21 16:01:57
评测时间
2021-11-21 16:03:03
评测机
分数
0
总耗时
18ms
峰值内存
340.0 KiB