/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'void Init()':
foo.cc:18:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(buf);
             ^
In file included from /usr/include/stdio.h:862:0,
                 from /usr/include/c++/7/cstdio:42,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6361,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
foo.cc:22:17: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(buf);
                 ^
In file included from /usr/include/stdio.h:862:0,
                 from /usr/include/c++/7/cstdio:42,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6361,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
foo.cc: In function 'int main()':
foo.cc:100:23: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     int Test; gets(buf); sscanf(buf,"%d",&Test);
                       ^
In file included from /usr/include/stdio.h:862:0,
                 from /usr/include/c++/7/cstdio:42,
                 from /usr/include/c++/7/ext/string_conversions.h:43,
                 from /usr/include/c++/7/bits/basic_string.h:6361,
                 from /usr/include/c++/7/string:52,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
foo.cc: In function 'void Init()':
foo.cc:18:9: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
     gets(buf);
     ~~~~^~~~~
foo.cc:22:13: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
         gets(buf);
         ~~~~^~~~~
foo.cc: In function 'int main()':
foo.cc:100:19: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
     int Test; gets(buf); sscanf(buf,"%d",&Test);
               ~~~~^~~~~
/tmp/ccugbDo8.o: In function `Init()':
foo.cc:(.text+0x1b): warning: the `gets' function is dangerous and should not be used.
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 291ms 27.992 MiB
#2 Time Exceeded ≥1181ms ≥153.16 MiB
#3 Time Exceeded ≥1185ms ≥105.762 MiB
#4 Time Exceeded ≥1177ms ≥192.305 MiB
#5 Time Exceeded ≥1371ms ≥192.613 MiB
#6 Accepted 171ms 27.992 MiB
#7 Accepted 173ms 27.992 MiB
#8 Time Exceeded ≥1306ms ≥199.223 MiB
#9 Time Exceeded ≥1368ms ≥169.832 MiB
#10 Accepted 1393ms 199.254 MiB

信息

递交者
类型
递交
题目
P2020 小Q的苹果树
语言
C++
递交时间
2021-10-09 21:12:57
评测时间
2021-10-09 21:12:57
评测机
分数
40
总耗时
≥9620ms
峰值内存
≥199.254 MiB