记录详情

Accepted

/in/foo.cc: In function 'int countSubstrings(const string&, int)':
/in/foo.cc:8:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < s.length(); i++) {
                     ~~^~~~~~~~~~~~
/in/foo.cc:10:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = i; j < s.length(); j++) {
                         ~~^~~~~~~~~~~~
/in/foo.cc:12:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (seen.size() == k) {
                 ~~~~~~~~~~~~^~~~
/in/foo.cc:14:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             } else if (seen.size() > k) {
                        ~~~~~~~~~~~~^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 360.0 KiB

信息

递交者
类型
自测
题目
P1568 Problem 1E. 子串计数
语言
C++
递交时间
2024-04-11 11:03:39
评测时间
2024-04-11 11:03:39
评测机
分数
10
总耗时
1ms
峰值内存
360.0 KiB