记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:85:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   85 |         gets(a);
      |         ~~~~^~~
In file included from foo.cc:2:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:102:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<StatUnit>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  102 |                 for (j = 0; j < vtStatResult.size(); j++)
      |                             ~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:114:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<StatUnit>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  114 |                 if (j == vtStatResult.size())
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:124:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<StatUnit>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  124 |         for (int i = 0; i < vtStatResult.size(); i++)
      |                         ~~^~~~~~~~~~~~~~~~~~~~~
/nix/store/74y3751gsixaz9797ib0hp7c658sp1y5-binutils-2.40/bin/ld: /tmp/cclJhcjp.o: in function `main':
foo.cc:(.text.startup+0x24): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 1d0 < 输入一串字符,相互之间用空格隔开,结尾以stop 4ms 412.0 KiB
#2 Wrong Answer Standard answer longer than user output. 3ms 404.0 KiB
#3 Runtime Error Segmentation fault 4ms 412.0 KiB
#4 Runtime Error Segmentation fault 4ms 412.0 KiB
#5 Runtime Error Segmentation fault 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1057 OO11-9 set与单词统计
语言
C++
递交时间
2023-10-21 16:58:41
评测时间
2023-10-21 16:58:41
评测机
分数
0
总耗时
21ms
峰值内存
412.0 KiB