/ 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/cc6rstyE.o: In function `main':
foo.cc:(.text.startup+0x2b): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Wrong Answer 6ms 6.328 MiB
#2 Wrong Answer 5ms 6.41 MiB
#3 Accepted 6ms 6.887 MiB
#4 Wrong Answer 6ms 6.922 MiB
#5 Accepted 10ms 7.812 MiB
#6 Wrong Answer 16ms 8.445 MiB
#7 Wrong Answer 155ms 11.516 MiB
#8 Wrong Answer 556ms 14.352 MiB
#9 Wrong Answer 723ms 15.375 MiB
#10 Wrong Answer 724ms 15.484 MiB

信息

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