记录详情

Wrong Answer

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/ccTr48ea.o: in function `main':
foo.cc:(.text.startup+0x1a): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer Read 1, expect 2. 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Accepted 5ms 328.0 KiB
#5 Accepted 4ms 412.0 KiB

信息

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