/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:14:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   14 |  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:14:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   14 |  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:15:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   15 |  gets(t);
      |        ^
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:15:8: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   15 |  gets(t);
      |        ^
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:14:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   14 |  gets(s);
      |  ~~~~^~~
foo.cc:15:6: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
   15 |  gets(t);
      |  ~~~~^~~
/usr/bin/ld: /tmp/ccbwf7g0.o: in function `main':
foo.cc:(.text.startup+0x1f): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 432.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 3ms 512.0 KiB
#7 Accepted 4ms 552.0 KiB
#8 Accepted 18ms 2.266 MiB
#9 Accepted 15ms 2.25 MiB
#10 Accepted 17ms 2.242 MiB

信息

递交者
类型
递交
题目
P1761 统计单词数
语言
C++
递交时间
2022-03-05 20:32:11
评测时间
2022-03-05 20:32:11
评测机
分数
100
总耗时
72ms
峰值内存
2.266 MiB