记录详情

Wrong Answer

/in/foo.cc: In function 'int count(std::__cxx11::string)':
/in/foo.cc:8:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<s.size()-1;i++)
              ~^~~~~~~~~~~
/in/foo.cc:13:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(s.find(ch,t)!=-1)
         ~~~~~~~~~~~~^~~~
/in/foo.cc: In function 'int search(std::__cxx11::string, std::__cxx11::string*, int)':
/in/foo.cc:28:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(a.find(b[i])!=-1)return 1;
       ~~~~~~~~~~~~^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:34:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<s.size();i++)
              ~^~~~~~~~~
/in/foo.cc:39:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<s.size()-1;i++)
              ~^~~~~~~~~~~
/in/foo.cc:44:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(s.find(ch,t)!=-1)
         ~~~~~~~~~~~~^~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 3.273 MiB
#2 Wrong Answer 3ms 3.332 MiB
#3 Wrong Answer 3ms 3.332 MiB
#4 Accepted 3ms 3.328 MiB
#5 Accepted 12ms 3.336 MiB

信息

递交者
类型
递交
比赛
2021苏青奥赛集训营(春季结业赛)
语言
C++
递交时间
2021-06-06 13:29:16
评测时间
2021-06-06 13:29:16
评测机
分数
60
总耗时
25ms
峰值内存
3.336 MiB