记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:11:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |     for(int i=0;i<str.size();i++)
      |                 ~^~~~~~~~~~~
foo.cc:13:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         if (i == str.size() - 1)
      |             ~~^~~~~~~~~~~~~~~~~
foo.cc:10:9: warning: unused variable 'k' [-Wunused-variable]
   10 |     int k = 0;
      |         ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 284.0 KiB
#2 Wrong Answer Read 1, expect 2. 2ms 336.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB
#5 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P1057 OO11-9 set与单词统计
比赛
2023春面向对象的程序设计方法(3)
语言
C++
递交时间
2023-05-25 19:45:37
评测时间
2023-05-25 19:45:37
评测机
分数
20
总耗时
13ms
峰值内存
336.0 KiB