记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:65:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   65 |         for (int i = 1; i < s1.size(); i++)
      |                         ~~^~~~~~~~~~~
foo.cc:67:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   67 |             if (s1.substr(i, s2.size()) == s2)
      |             ^~
foo.cc:69:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   69 |                 v[i] += v[i - 1];
      |                 ^
foo.cc:75:27: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   75 |             if (r - l + 1 < s2.size())
      |                 ~~~~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 4ms 384.0 KiB
#6 Accepted 5ms 384.0 KiB
#7 Accepted 3ms 384.0 KiB
#8 Accepted 4ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 7ms 384.0 KiB
#11 Accepted 28ms 768.0 KiB
#12 Accepted 142ms 1016.0 KiB
#13 Accepted 84ms 1016.0 KiB
#14 Accepted 20ms 512.0 KiB
#15 Accepted 20ms 512.0 KiB
#16 Accepted 81ms 1016.0 KiB
#17 Accepted 50ms 888.0 KiB
#18 Accepted 51ms 760.0 KiB
#19 Accepted 26ms 768.0 KiB
#20 Accepted 26ms 768.0 KiB

信息

递交者
类型
递交
题目
P1388 Problem G. 出现次数
比赛
2022年暑期算法队集训赛
语言
C++
递交时间
2022-07-08 13:02:21
评测时间
2022-07-08 13:02:21
评测机
分数
100
总耗时
575ms
峰值内存
1016.0 KiB