/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < str.length(); i++)
                     ~~^~~~~~~~~~~~~~
/in/foo.cc:24:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j = 0, k = i; j < s0.length(); j++, k++)
                                ~~^~~~~~~~~~~~~
/in/foo.cc:27:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(j == s0.length() && (k == str.length() || str[k] == ' '))
                ~~^~~~~~~~~~~~~~
/in/foo.cc:27:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(j == s0.length() && (k == str.length() || str[k] == ' '))
                                     ~~^~~~~~~~~~~~~~~
/in/foo.cc:36:31: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
         cout << ans << " " << p <<endl;
                               ^
# 状态 耗时 内存占用
#1 Accepted 1ms 400.0 KiB
#2 Accepted 1ms 328.0 KiB
#3 Accepted 1ms 400.0 KiB
#4 Accepted 1ms 360.0 KiB
#5 Accepted 2ms 376.0 KiB
#6 Accepted 4ms 640.0 KiB
#7 Accepted 4ms 608.0 KiB
#8 Accepted 33ms 2.418 MiB
#9 Accepted 39ms 2.355 MiB
#10 Accepted 36ms 2.348 MiB

信息

递交者
类型
递交
题目
P1761 统计单词数
语言
C++
递交时间
2021-08-28 13:36:57
评测时间
2021-08-28 13:36:57
评测机
分数
100
总耗时
127ms
峰值内存
2.418 MiB