/ JYOI /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:42:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(s);
        ^
In file included from /usr/include/stdio.h:862:0,
                 from /usr/include/c++/7/cstdio:42,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:46,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
foo.cc:50:8: warning: unused variable 'l' [-Wunused-variable]
    int l = i + 1;
        ^
foo.cc:42:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
  gets(s);
  ~~~~^~~
foo.cc:44:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
  ~~~~~^~~~~~~~~~
foo.cc:46:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d", &x[i]);
   ~~~~~^~~~~~~~~~~~~
foo.cc:101:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &t);
  ~~~~~^~~~~~~~~~
foo.cc:103:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d", &rz);
   ~~~~~^~~~~~~~~~~
/tmp/ccV2wrl3.o: In function `main':
foo.cc:(.text.startup+0x2b): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 0ms 128.0 KiB
#2 Runtime Error Segmentation fault 0ms 128.0 KiB
#3 Runtime Error Segmentation fault 0ms 128.0 KiB
#4 Runtime Error Segmentation fault 0ms 128.0 KiB
#5 Runtime Error Segmentation fault 0ms 128.0 KiB
#6 Runtime Error Segmentation fault 0ms 128.0 KiB
#7 Runtime Error Segmentation fault 0ms 128.0 KiB
#8 Runtime Error Segmentation fault 0ms 128.0 KiB
#9 Runtime Error Segmentation fault 0ms 128.0 KiB
#10 Runtime Error Segmentation fault 0ms 128.0 KiB
#11 Runtime Error Segmentation fault 0ms 128.0 KiB
#12 Runtime Error Segmentation fault 0ms 128.0 KiB
#13 Runtime Error Segmentation fault 0ms 128.0 KiB
#14 Runtime Error Segmentation fault 0ms 128.0 KiB
#15 Runtime Error Segmentation fault 0ms 128.0 KiB
#16 Runtime Error Segmentation fault 0ms 128.0 KiB
#17 Runtime Error Segmentation fault 0ms 128.0 KiB
#18 Runtime Error Segmentation fault 0ms 128.0 KiB
#19 Runtime Error Segmentation fault 0ms 128.0 KiB
#20 Runtime Error Segmentation fault 0ms 128.0 KiB

信息

递交者
类型
递交
题目
P1019 表达式
语言
C++
递交时间
2021-08-11 21:54:02
评测时间
2021-08-11 21:55:11
评测机
分数
0
总耗时
9ms
峰值内存
128.0 KiB