/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int toInt(std::string)':
foo.cc:24:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |  while (i < t.size())
      |         ~~^~~~~~~~~~
foo.cc: In function 'void getne(std::string, int*)':
foo.cc:63:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |  while (i < p.size())
      |         ~~^~~~~~~~~~
foo.cc: In function 'll kmp(std::string, std::string, int*)':
foo.cc:81:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   81 |   while (i < len && post < p.size() && s[i] == p[post]) i++, post++;
      |                     ~~~~~^~~~~~~~~~
foo.cc:83:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   83 |   if (post == p.size()) sum++;
      |       ~~~~~^~~~~~~~~~~
foo.cc: At global scope:
foo.cc:105:20: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
  105 | const int N = 1<<16+7;
      |                  ~~^~
foo.cc: In function 'void deal()':
foo.cc:121:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  121 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:125:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  125 |    scanf("%lld", *(w + i) + j);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 9998, expect 19996. 2ms 384.0 KiB
#2 Wrong Answer Read 9997, expect 29992. 5ms 384.0 KiB
#3 Wrong Answer Read 9999, expect 39996. 4ms 384.0 KiB
#4 Wrong Answer Read 9998, expect 49990. 4ms 384.0 KiB
#5 Wrong Answer Read 9996, expect 59977. 2ms 384.0 KiB
#6 Wrong Answer Read 9997, expect 69979. 4ms 384.0 KiB
#7 Wrong Answer Read 9998, expect 79984. 4ms 512.0 KiB
#8 Wrong Answer Read 9998, expect 89982. 4ms 640.0 KiB
#9 Wrong Answer Read 9997, expect 99970. 3ms 640.0 KiB
#10 Wrong Answer Read 9994, expect 109939. 5ms 1.0 MiB
#11 Wrong Answer Read 9998, expect 119976. 14ms 1.75 MiB
#12 Wrong Answer Read 9997, expect 129961. 17ms 2.875 MiB
#13 Wrong Answer Read 9998, expect 139972. 51ms 5.367 MiB
#14 Wrong Answer Read 9999, expect 149985. 80ms 10.367 MiB
#15 Wrong Answer Read 9998, expect 149970. 66ms 10.367 MiB
#16 Wrong Answer Read 9997, expect 149955. 62ms 10.367 MiB
#17 Wrong Answer Read 9996, expect 149940. 61ms 10.367 MiB
#18 Wrong Answer Read 9995, expect 149925. 56ms 10.367 MiB
#19 Wrong Answer Read 9994, expect 149914. 90ms 10.367 MiB
#20 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1456 最小总代价
语言
C++
递交时间
2022-03-30 10:17:34
评测时间
2022-03-30 10:17:34
评测机
分数
5
总耗时
548ms
峰值内存
10.367 MiB