Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<strlen(s);i++){
                 ~^~~~~~~~~~
/in/foo.cc:13:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if(s[i]>=97&&s[i]<=122||s[i]>=65&&s[i]<=90){
            ~~~~~~~~^~~~~~~~~~~
/in/foo.cc:18:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=1;i<strlen(s);i++){
                 ~^~~~~~~~~~
/in/foo.cc:19:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         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)){
                                                      ~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:19:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         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)){
            ~~~~~~~~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 400.0 KiB

信息

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