记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:13:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (;i < sentence.length();++i)
           ~~^~~~~~~~~~~~~~~~~~~
foo.cc:15:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (j = 0;j < word.length();++j)
                    ~~^~~~~~~~~~~~~~~
foo.cc:20:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (j == word.length() &&( i+j == sentence.length()||sentence[i + j] == ' ' ) )
             ~~^~~~~~~~~~~~~~~~
foo.cc:20:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (j == word.length() &&( i+j == sentence.length()||sentence[i + j] == ' ' ) )
                                    ~~~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 1ms 384.0 KiB
#2 Wrong Answer User output longer than standard answer. 2ms 340.0 KiB

信息

递交者
类型
递交
比赛
周末测试
语言
C++
递交时间
2021-11-07 10:26:56
评测时间
2021-11-07 10:26:56
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB