记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:11:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<x.size();i++) if(int(x[i])>=65 && int(x[i])<=90) x[i]=char(int(x[i])+32);
              ~^~~~~~~~~
foo.cc:14:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<x.size()-1;i++) for(int j=i+1;j<x.size()-1;j++) if(x[i]==x[j] && x[i+1]==x[j+1]) p[j]++;
              ~^~~~~~~~~~~
foo.cc:14:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<x.size()-1;i++) for(int j=i+1;j<x.size()-1;j++) if(x[i]==x[j] && x[i+1]==x[j+1]) p[j]++;
                                              ~^~~~~~~~~~~
foo.cc:15:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<x.size()-1;i++) if(p[i]>maxn) maxn=p[i];
              ~^~~~~~~~~~~
foo.cc:18:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<x.size()-1;i++)
              ~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 4ms 3.449 MiB
#2 Wrong Answer User output longer than standard answer. 4ms 3.465 MiB
#3 Wrong Answer User output longer than standard answer. 4ms 3.375 MiB
#4 Accepted 4ms 3.367 MiB
#5 Accepted 6ms 3.473 MiB

信息

递交者
类型
递交
题目
6-10 哪个字母对用得最多
比赛
2021(四) 作业第三场:热身赛
语言
C++
递交时间
2021-11-15 18:46:19
评测时间
2021-11-15 18:46:19
评测机
分数
40
总耗时
24ms
峰值内存
3.473 MiB