/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:42:26: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  scanf("%d%d", &n, &m);  gets(laji);
                          ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 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:42:35: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
  scanf("%d%d", &n, &m);  gets(laji);
                                   ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 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:46:4: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(s);
    ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 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:46:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
    gets(s);
          ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 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:47:8: warning: unused variable 'l' [-Wunused-variable]
    int l = strlen(s);
        ^
/tmp/ccglLzw2.o: In function `main':
foo.cc:(.text.startup+0x3a): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 1ms 432.0 KiB
#2 Accepted 6ms 3.387 MiB
#3 Wrong Answer 3ms 2.348 MiB
#4 Accepted 4ms 2.746 MiB
#5 Accepted 5ms 2.734 MiB
#6 Accepted 3ms 2.246 MiB
#7 Accepted 4ms 2.273 MiB
#8 Accepted 5ms 3.184 MiB
#9 Accepted 5ms 2.219 MiB
#10 Accepted 1ms 356.0 KiB
#11 Accepted 1ms 376.0 KiB
#12 Accepted 1ms 372.0 KiB
#13 Accepted 1ms 340.0 KiB
#14 Accepted 1ms 336.0 KiB
#15 Accepted 1ms 376.0 KiB
#16 Accepted 1ms 376.0 KiB
#17 Accepted 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1015 十字绣
语言
C++
递交时间
2022-06-09 23:32:08
评测时间
2022-06-09 23:32:08
评测机
分数
160
总耗时
52ms
峰值内存
3.387 MiB