Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:17:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=0;i<str.length();i++)
                  ~^~~~~~~~~~~~~
/in/foo.cc:21:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j=0,k=i;j<s0.length();j++,k++)
                          ~^~~~~~~~~~~~
/in/foo.cc:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(j == s0.length()&&(k==str.length()||str[k]==' '))
                ~~^~~~~~~~~~~~~~
/in/foo.cc:24:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(j == s0.length()&&(k==str.length()||str[k]==' '))
                                   ~^~~~~~~~~~~~~~
/in/foo.cc:32:25: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
         cout<<ans<<" "<<p<<endl;
                         ^
# 状态 耗时 内存占用
#1 Accepted 1ms 204.0 KiB
#2 Accepted 1ms 220.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Accepted 1ms 224.0 KiB
#5 Accepted 1ms 220.0 KiB
#6 Accepted 5ms 500.0 KiB
#7 Accepted 5ms 504.0 KiB
#8 Accepted 34ms 2.199 MiB
#9 Accepted 35ms 2.266 MiB
#10 Accepted 35ms 2.258 MiB

信息

递交者
类型
递交
题目
P1470 统计单词数
比赛
2021.6.7本周培优课练习(学校社团专练)
语言
C++
递交时间
2021-06-11 17:38:31
评测时间
2021-06-11 17:38:31
评测机
分数
100
总耗时
124ms
峰值内存
2.266 MiB