/ Vijos /

记录详情

Wrong Answer

/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:22:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j=0,k=i;j<s.length();j++,k++)
                          ~^~~~~~~~~~~
/in/foo.cc:25:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(j==s.length() && (k==str.length()||str[k]==' '))
                ~^~~~~~~~~~~~
/in/foo.cc:25:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(j==s.length() && (k==str.length()||str[k]==' '))
                                  ~^~~~~~~~~~~~~~
/in/foo.cc:34:25: warning: 'flag' may be used uninitialized in this function [-Wmaybe-uninitialized]
         cout<<ans<<" "<<flag<<endl;
                         ^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 208.0 KiB
#2 Accepted 1ms 220.0 KiB
#3 Accepted 1ms 224.0 KiB
#4 Accepted 1ms 220.0 KiB
#5 Wrong Answer 2ms 220.0 KiB
#6 Accepted 5ms 472.0 KiB
#7 Wrong Answer 4ms 492.0 KiB
#8 Wrong Answer 35ms 2.195 MiB
#9 Wrong Answer 34ms 2.234 MiB
#10 Accepted 34ms 2.254 MiB

信息

递交者
类型
递交
题目
P1761 统计单词数
语言
C++
递交时间
2021-06-11 20:43:16
评测时间
2021-06-11 20:43:16
评测机
分数
60
总耗时
123ms
峰值内存
2.254 MiB