/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:72:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   72 |         gets(str);
      |         ~~~~^~~~~
In file included from /usr/include/c++/12/cstdio:42,
                 from /in/foo.cc:17:
/usr/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/usr/bin/ld: /tmp/cc55U27D.o: in function `main':
foo.cc:(.text.startup+0x6c): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 2ms 776.0 KiB
#2 Accepted 2ms 736.0 KiB
#3 Accepted 2ms 792.0 KiB
#4 Accepted 3ms 932.0 KiB
#5 Accepted 3ms 932.0 KiB
#6 Accepted 4ms 936.0 KiB
#7 Accepted 4ms 924.0 KiB
#8 Accepted 4ms 936.0 KiB
#9 Accepted 4ms 928.0 KiB
#10 Accepted 3ms 784.0 KiB

信息

递交者
类型
递交
题目
P1376 魔法卷轴
语言
C++
递交时间
2025-06-15 10:23:20
评测时间
2025-06-15 10:23:20
评测机
分数
100
总耗时
35ms
峰值内存
936.0 KiB