/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(s1); gets(s2);
     ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
foo.cc:10:12: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(s1); gets(s2);
            ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
foo.cc:10:15: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(s1); gets(s2);
               ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
foo.cc:10:22: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     gets(s1); gets(s2);
                      ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
foo.cc:11:41: warning: unused variable 'x' [-Wunused-variable]
     int i,j,l1=strlen(s1),l2=strlen(s2),x=0;
                                         ^
/tmp/ccMSCKdF.o: In function `main':
foo.cc:(.text.startup+0xc): warning: the `gets' function is dangerous and should not be used.

自豪的采用jd5进行评测(github.com/masnn/jd5)
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 236.0 KiB
#2 Wrong Answer 2ms 248.0 KiB
#3 Wrong Answer 4ms 244.0 KiB
#4 Wrong Answer 129ms 468.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2020-02-04 16:00:44
评测时间
2020-02-04 16:00:44
评测机
分数
100
总耗时
138ms
峰值内存
468.0 KiB