/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:42:35: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   42 |  scanf("%d%d", &n, &m);  gets(laji);
      |                                   ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:42:35: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   42 |  scanf("%d%d", &n, &m);  gets(laji);
      |                                   ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:46:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   46 |    gets(s);
      |          ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:46:10: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   46 |    gets(s);
      |          ^
In file included from /usr/include/stdio.h:867,
                 from /usr/include/c++/9/cstdio:42,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
                 from foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:235:1: note: declared here
  235 | gets (char *__str)
      | ^~~~
foo.cc:47:8: warning: unused variable 'l' [-Wunused-variable]
   47 |    int l = strlen(s);
      |        ^
foo.cc:42:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   42 |  scanf("%d%d", &n, &m);  gets(laji);
      |  ~~~~~^~~~~~~~~~~~~~~~
foo.cc:42:30: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   42 |  scanf("%d%d", &n, &m);  gets(laji);
      |                          ~~~~^~~~~~
foo.cc:46:8: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   46 |    gets(s);
      |    ~~~~^~~
/usr/bin/ld: /tmp/ccg4YLnO.o: in function `main':
foo.cc:(.text.startup+0x5b): warning: the `gets' function is dangerous and should not be used.
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 384.0 KiB
#2 Accepted 6ms 2.625 MiB
#3 Wrong Answer Read 0, expect 2. 6ms 2.375 MiB
#4 Accepted 6ms 2.75 MiB
#5 Accepted 9ms 2.625 MiB
#6 Accepted 7ms 2.25 MiB
#7 Accepted 7ms 2.25 MiB
#8 Accepted 7ms 3.125 MiB
#9 Accepted 8ms 2.125 MiB
#10 Accepted 2ms 384.0 KiB
#11 Accepted 3ms 384.0 KiB
#12 Accepted 3ms 384.0 KiB
#13 Accepted 2ms 384.0 KiB
#14 Accepted 2ms 384.0 KiB
#15 Accepted 2ms 384.0 KiB
#16 Accepted 4ms 384.0 KiB
#17 Accepted 2ms 384.0 KiB

信息

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