Wrong Answer

foo.cc: In function 'int main()':
foo.cc:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for(int i=0;i<strlen(s);i++){
      |                 ~^~~~~~~~~~
foo.cc:13:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   13 |         if(s[i]>=97&&s[i]<=122||s[i]>=65&&s[i]<=90){
      |            ~~~~~~~~^~~~~~~~~~~
foo.cc:18:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   18 |     for(int i=1;i<strlen(s);i++){
      |                 ~^~~~~~~~~~
foo.cc:19:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |         if(s[i]>=97&&s[i]<=122||s[i]>=65&&s[i]<=90&&(s[i-1]>=97&&s[i-1]<=122||s[i-1]>=65&&s[i-1]<=90)){
      |                                                      ~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:19:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |         if(s[i]>=97&&s[i]<=122||s[i]>=65&&s[i]<=90&&(s[i-1]>=97&&s[i-1]<=122||s[i-1]>=65&&s[i-1]<=90)){
      |            ~~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer User output longer than standard answer. 4ms 412.0 KiB
#3 Wrong Answer Standard answer longer than user output. 3ms 412.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Wrong Answer Read ai, expect in. 5ms 360.0 KiB

信息

递交者
类型
递交
题目
P1103 6-10 哪个字母对用得最多
语言
C++
递交时间
2023-08-17 22:08:38
评测时间
2023-08-17 22:08:38
评测机
分数
40
总耗时
22ms
峰值内存
412.0 KiB