/ Vijos /

记录详情

Accepted

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/ccRB01B3.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 2ms 384.0 KiB
#2 Accepted 7ms 2.625 MiB
#3 Accepted 9ms 3.875 MiB
#4 Accepted 6ms 2.625 MiB
#5 Accepted 6ms 2.75 MiB
#6 Accepted 6ms 2.25 MiB
#7 Accepted 6ms 2.25 MiB
#8 Accepted 7ms 3.125 MiB
#9 Accepted 8ms 2.125 MiB
#10 Accepted 2ms 384.0 KiB
#11 Accepted 4ms 512.0 KiB
#12 Accepted 2ms 384.0 KiB
#13 Accepted 2ms 384.0 KiB
#14 Accepted 3ms 384.0 KiB
#15 Accepted 4ms 384.0 KiB
#16 Accepted 3ms 384.0 KiB
#17 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1015 十字绣
语言
C++
递交时间
2022-06-10 00:21:49
评测时间
2022-06-10 00:21:49
评测机
分数
170
总耗时
90ms
峰值内存
3.875 MiB