记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |     for(int i=0;i<=line.size()-str.size();i++)for(int j=0,ii=i;j<str.size();j++){if(line[ii++]!=str[j])break;if(j==str.size()-1)count++;}
      |                 ~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:10:65: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |     for(int i=0;i<=line.size()-str.size();i++)for(int j=0,ii=i;j<str.size();j++){if(line[ii++]!=str[j])break;if(j==str.size()-1)count++;}
      |                                                                ~^~~~~~~~~~~
/in/foo.cc:10:114: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |     for(int i=0;i<=line.size()-str.size();i++)for(int j=0,ii=i;j<str.size();j++){if(line[ii++]!=str[j])break;if(j==str.size()-1)count++;}
      |                                                                                                                 ~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 480.0 KiB
#2 Accepted 2ms 528.0 KiB
#3 Wrong Answer 1ms 348.0 KiB
#4 Accepted 1ms 476.0 KiB
#5 Wrong Answer 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P1093 xf2-6情诗暗示
比赛
2025年春 南师大《程序设计与竞赛》作业赛第四场
语言
C++
递交时间
2025-03-28 19:54:10
评测时间
2025-03-28 19:54:10
评测机
分数
60
总耗时
9ms
峰值内存
532.0 KiB