/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:2: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets (st[1] + 1);
  ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:20:17: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  gets (st[1] + 1);
                 ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:22:3: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets (st[i] + 1);
   ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:22:18: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets (st[i] + 1);
                  ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:27:3: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets (st[n * 2 - i + 1] + 1);
   ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:27:30: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   gets (st[n * 2 - i + 1] + 1);
                              ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/tmp/ccDKCfcj.o: In function `main':
foo.cc:(.text.startup+0x2b): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Wrong Answer 6ms 8.031 MiB
#2 Wrong Answer 6ms 8.062 MiB
#3 Accepted 7ms 8.562 MiB
#4 Wrong Answer 7ms 8.645 MiB
#5 Accepted 10ms 9.746 MiB
#6 Wrong Answer 17ms 10.32 MiB
#7 Wrong Answer 151ms 13.777 MiB
#8 Wrong Answer 544ms 16.965 MiB
#9 Wrong Answer 723ms 18.113 MiB
#10 Wrong Answer 661ms 18.242 MiB

信息

递交者
类型
递交
题目
P1467 菱形内的计数
语言
C++
递交时间
2019-11-09 11:56:31
评测时间
2019-11-09 11:56:31
评测机
分数
20
总耗时
2136ms
峰值内存
18.242 MiB