/ MYOJ /

记录详情

Memory Exceeded

foo.cc: In function 'int main()':
foo.cc:7:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(x);
        ^
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:8:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(y);
        ^
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:7:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
  gets(x);
  ~~~~^~~
foo.cc:8:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
  gets(y);
  ~~~~^~~
/tmp/ccQYD4Gr.o: In function `main':
foo.cc:(.text.startup+0x34): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Memory Exceeded ≥33ms ≥16.0 KiB
#2 Memory Exceeded ≥40ms ≥16.0 KiB
#3 Memory Exceeded ≥36ms ≥16.0 KiB
#4 Memory Exceeded ≥34ms ≥16.0 KiB
#5 Memory Exceeded ≥30ms ≥16.0 KiB
#6 Memory Exceeded ≥34ms ≥16.0 KiB
#7 Memory Exceeded ≥29ms ≥16.0 KiB
#8 Memory Exceeded ≥31ms ≥16.0 KiB
#9 Memory Exceeded ≥37ms ≥16.0 KiB
#10 Memory Exceeded ≥29ms ≥16.0 KiB

信息

递交者
类型
递交
题目
P1020 [7FOJ]高精度加法
语言
C++
递交时间
2021-08-25 14:36:50
评测时间
2021-08-25 14:36:50
评测机
分数
0
总耗时
≥336ms
峰值内存
≥16.0 KiB