/ /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<s.size();i++)
              ~^~~~~~~~~
foo.cc:11:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(s[i]==' '&&s[i+1]!=' '&&i+1<s.size())
                              ~~~^~~~~~~~~
foo.cc:14:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    while(s[end+1]!=' '&&('a'<=s[end]&&s[end]<='z'||'A'<=s[end]&&s[end]<='Z'))
                          ~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc:26:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<s.size()-1;i++)
              ~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Wrong Answer Read =is-1, expect si=1-. 1ms 408.0 KiB
#3 Accepted 2ms 440.0 KiB
#4 Accepted 2ms 408.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1105 3-4 颠倒单词
语言
C++
递交时间
2021-08-13 17:45:16
评测时间
2021-08-13 17:46:06
评测机
分数
80
总耗时
10ms
峰值内存
440.0 KiB