/ Vijos /

记录详情

Runtime Error

foo.c: In function 'main':
foo.c:258:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
  gets(a[0]);
  ^~~~
In file included from /usr/include/stdio.h:936:0,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:233:1: note: declared here
 gets (char *__str)
 ^~~~
foo.c:263:8: warning: unused variable 'bb' [-Wunused-variable]
  int k,bb;
        ^~
foo.c:248:11: warning: variable 'tar2' set but not used [-Wunused-but-set-variable]
  int tar1,tar2;
           ^~~~
foo.c:248:6: warning: variable 'tar1' set but not used [-Wunused-but-set-variable]
  int tar1,tar2;
      ^~~~
foo.c:247:10: warning: unused variable 'j' [-Wunused-variable]
  int tar,j;
          ^
foo.c:247:6: warning: variable 'tar' set but not used [-Wunused-but-set-variable]
  int tar,j;
      ^~~
foo.c:258:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
  gets(a[0]);
  ^~~~~~~~~~
foo.c:264:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&k);
  ^~~~~~~~~~~~~~
/tmp/ccNzHmT0.o: In function `main':
foo.c:(.text.startup+0xab): warning: the `gets' function is dangerous and should not be used.

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-02T01:08:23.252Z","handle":"2020-07-02T01:08:23.252Z","cache_start":"2020-07-02T01:08:23.259Z","read_cases":"2020-07-02T01:08:23.419Z","judge":"2020-07-02T01:08:23.420Z","done":"2020-07-02T01:08:23.604Z"}
# 状态 耗时 内存占用
#1 Runtime Error 0ms 128.0 KiB
#2 Runtime Error 0ms 128.0 KiB
#3 Runtime Error 0ms 128.0 KiB
#4 Runtime Error 0ms 128.0 KiB
#5 Runtime Error 0ms 128.0 KiB
#6 Runtime Error 0ms 128.0 KiB
#7 Runtime Error 0ms 128.0 KiB
#8 Runtime Error 0ms 128.0 KiB
#9 Runtime Error 0ms 128.0 KiB
#10 Runtime Error 0ms 128.0 KiB

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C
递交时间
2020-07-02 09:08:23
评测时间
2020-07-02 09:08:23
评测机
分数
0
总耗时
7ms
峰值内存
128.0 KiB