记录详情

Accepted

foo.cc: In function ‘int countSubstrings(const std::string&, int)’:
foo.cc:8:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    8 |     for (int i = 0; i < s.length(); i++) {
      |                     ~~^~~~~~~~~~~~
foo.cc:10:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   10 |         for (int j = i; j < s.length(); j++) {
      |                         ~~^~~~~~~~~~~~
foo.cc:12:29: warning: comparison of integer expressions of different signedness: ‘std::unordered_set<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
   12 |             if (seen.size() == k) {
      |                 ~~~~~~~~~~~~^~~~
foo.cc:14:36: warning: comparison of integer expressions of different signedness: ‘std::unordered_set<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
   14 |             } else if (seen.size() > k) {
      |                        ~~~~~~~~~~~~^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB

信息

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