/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void init()':
/in/foo.cc:57:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   57 |         gets(a+1);      cin>>m;
      |         ~~~~^~~~~
In file included from /usr/include/c++/12/cstdio:42,
                 from /usr/include/c++/12/ext/string_conversions.h:43,
                 from /usr/include/c++/12/bits/basic_string.h:3960,
                 from /usr/include/c++/12/string:53,
                 from /usr/include/c++/12/bits/locale_classes.h:40,
                 from /usr/include/c++/12/bits/ios_base.h:41,
                 from /usr/include/c++/12/ios:42,
                 from /usr/include/c++/12/ostream:38,
                 from /usr/include/c++/12/iostream:39,
                 from /in/foo.cc:41:
/usr/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/usr/bin/ld: /tmp/ccMgVoVB.o: in function `init()':
foo.cc:(.text+0xf): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 67ms 4.488 MiB
#2 Accepted 31ms 2.707 MiB
#3 Accepted 3ms 788.0 KiB
#4 Accepted 86ms 4.586 MiB
#5 Accepted 2ms 532.0 KiB
#6 Accepted 75ms 4.441 MiB
#7 Accepted 2ms 532.0 KiB
#8 Accepted 2ms 532.0 KiB
#9 Accepted 2ms 736.0 KiB
#10 Accepted 3ms 1.383 MiB
#11 Accepted 80ms 4.27 MiB
#12 Accepted 7ms 1.52 MiB
#13 Accepted 2ms 796.0 KiB
#14 Accepted 77ms 4.367 MiB
#15 Accepted 10ms 1.465 MiB
#16 Accepted 2ms 492.0 KiB
#17 Accepted 3ms 1.004 MiB
#18 Accepted 57ms 3.762 MiB
#19 Accepted 102ms 4.508 MiB
#20 Accepted 99ms 4.535 MiB

信息

递交者
类型
递交
题目
P1455 最小与最大
语言
C++
递交时间
2026-05-20 14:15:16
评测时间
2026-05-20 14:15:16
评测机
分数
100
总耗时
720ms
峰值内存
4.586 MiB