/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   10 |         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:11:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   11 |         gets(b1);
      |         ~~~~^~~~
/usr/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
/usr/bin/ld: /tmp/ccHx4Or7.o: in function `main':
foo.cc:(.text.startup+0x5a): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 2ms 472.0 KiB
#2 Runtime Error 1ms 540.0 KiB
#3 Runtime Error 2ms 536.0 KiB
#4 Runtime Error 2ms 476.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2026-08-09 14:01:53
评测时间
2026-08-09 14:01:53
评测机
分数
25
总耗时
8ms
峰值内存
540.0 KiB