/ 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 204.0 KiB
#2 Accepted 1ms 228.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Accepted 1ms 224.0 KiB
#6 Accepted 4ms 484.0 KiB
#7 Accepted 4ms 516.0 KiB
#8 Accepted 35ms 2.195 MiB
#9 Accepted 34ms 2.273 MiB
#10 Accepted 35ms 2.234 MiB

信息

递交者
类型
递交
题目
P1761 统计单词数
语言
C++
递交时间
2020-11-08 17:36:00
评测时间
2020-11-08 17:36:00
评测机
分数
100
总耗时
123ms
峰值内存
2.273 MiB