/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   11 |         gets(a1);
      |         ~~~~^~~~
In file included from /usr/include/c++/12/cstdio:42,
                 from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/in/foo.cc:12:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   12 |         gets(b1);
      |         ~~~~^~~~
/usr/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/usr/bin/ld: /tmp/ccDzmxsY.o: in function `main':
foo.cc:(.text.startup+0x62): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 2ms 500.0 KiB
#2 Accepted 1ms 532.0 KiB
#3 Accepted 4ms 660.0 KiB
#4 Wrong Answer 288ms 672.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2026-08-09 14:07:45
评测时间
2026-08-09 14:07:45
评测机
分数
75
总耗时
297ms
峰值内存
672.0 KiB