/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:7:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    7 | gets(s1);gets(s2);
      | ~~~~^~~~
In file included from cstdio:42:
/nix/store/1x86jfiwsp5qi448fcdkkzn7vmx4krv2-glibc-2.35-163-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:7:14: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    7 | gets(s1);gets(s2);
      |          ~~~~^~~~
In file included from cstdio:42:
/nix/store/1x86jfiwsp5qi448fcdkkzn7vmx4krv2-glibc-2.35-163-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:8:37: warning: unused variable 'x' [-Wunused-variable]
    8 | int i,j,l1=strlen(s1),l2=strlen(s2),x=0;
      |                                     ^
/nix/store/vhf2cr6immz4qdxd83y025fnxim8mmfg-binutils-2.38/bin/ld: /tmp/cc5qqexn.o: in function `main':
foo.cc:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 120ms 512.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2022-09-02 15:19:18
评测时间
2022-09-02 15:19:18
评测机
分数
100
总耗时
131ms
峰值内存
512.0 KiB