记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:17:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(pre);
  ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:17:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(pre);
  ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:17:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(pre);
          ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:18:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(mid);
  ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:18:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(mid);
  ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:18:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets(mid);
          ^
In file included from /usr/include/c++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:17:11: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
  gets(pre);
           ^
foo.cc:18:11: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
  gets(mid);
           ^
/tmp/cchKlocG.o: In function `main':
foo.cc:(.text.startup+0x22): warning: the `gets' function is dangerous and should not be used.

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-04-16T11:01:21.996Z","handle":"2020-04-16T11:01:21.996Z","cache_start":"2020-04-16T11:01:22.005Z","read_cases":"2020-04-16T11:01:23.411Z","judge":"2020-04-16T11:01:23.412Z","done":"2020-04-16T11:01:23.703Z"}
# 状态 耗时 内存占用
#1 Wrong Answer 读取到 EDB CA ,应为 EDBCA 1ms 256.0 KiB
#2 Wrong Answer 读取到 B CA ,应为 BCA 1ms 256.0 KiB
#3 Wrong Answer 读取到 DEB FCA ,应为 DEBFCA 1ms 256.0 KiB
#4 Wrong Answer 读取到 DEB GFCA ,应为 DEBGFCA 0ms 256.0 KiB
#5 Wrong Answer 读取到 DEBH GFCA ,应为 DEBHGFCA 1ms 256.0 KiB

信息

递交者
类型
递交
题目
DS5-2 根据先序和中序序列创建二叉树
语言
C++
递交时间
2020-04-16 19:01:21
评测时间
2020-04-16 19:01:21
评测机
分数
0
总耗时
5ms
峰值内存
256.0 KiB