记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:30:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   30 |   for (int i = 0; i != words.size(); i++)
      |                   ~~^~~~~~~~~~~~~~~
foo.cc:45:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   45 |  for (int i = 0; i < words.size(); i++)
      |                  ~~^~~~~~~~~~~~~~
foo.cc:47:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |   for(int j=0;j<words.size()-i-1;j++)
      |               ~^~~~~~~~~~~~~~~~~
foo.cc:56:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   56 |  for (int i = 0; i < words.size(); i++)
      |                  ~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#2 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 512.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#5 Wrong Answer Standard answer longer than user output. 5ms 384.0 KiB

信息

递交者
类型
递交
题目
P1057 OO11-9 set与单词统计
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-14 13:03:02
评测时间
2022-05-14 13:03:02
评测机
分数
0
总耗时
16ms
峰值内存
512.0 KiB