记录详情

Accepted

foo.cc: In function 'void Next(std::string)':
foo.cc:10:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |     while (j<T.size()) {
      |            ~^~~~~~~~~
foo.cc: In function 'int KMP(std::string)':
foo.cc:20:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |     while (i<s.size()) {
      |            ~^~~~~~~~~
foo.cc:28:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         if(j==b.size())
      |            ~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:45:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   45 |   if(y-x+1<b.size()) printf("0\n");
      |      ~~~~~^~~~~~~~~
foo.cc:38:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   38 |  scanf("%d%d%d",&n,&m,&q);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:44:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   44 |   scanf("%d%d",&x,&y);
      |   ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 512.0 KiB
#3 Accepted 5ms 256.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 3ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 7ms 384.0 KiB
#11 Accepted 268ms 760.0 KiB
#12 Accepted 1169ms 1016.0 KiB
#13 Accepted 976ms 1016.0 KiB
#14 Accepted 80ms 508.0 KiB
#15 Accepted 59ms 512.0 KiB
#16 Accepted 690ms 1016.0 KiB
#17 Accepted 321ms 760.0 KiB
#18 Accepted 391ms 760.0 KiB
#19 Accepted 390ms 760.0 KiB
#20 Accepted 450ms 760.0 KiB

信息

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