/ Vijos /

记录详情

Accepted

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: 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:126:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  126 |    scanf("%lld", *(w + i) + j);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 12ms 10.375 MiB
#2 Accepted 13ms 10.5 MiB
#3 Accepted 12ms 10.375 MiB
#4 Accepted 11ms 10.375 MiB
#5 Accepted 13ms 10.375 MiB
#6 Accepted 11ms 10.375 MiB
#7 Accepted 13ms 10.375 MiB
#8 Accepted 11ms 10.375 MiB
#9 Accepted 11ms 10.375 MiB
#10 Accepted 14ms 10.375 MiB
#11 Accepted 18ms 10.5 MiB
#12 Accepted 23ms 10.375 MiB
#13 Accepted 50ms 10.375 MiB
#14 Accepted 54ms 10.375 MiB
#15 Accepted 57ms 10.375 MiB
#16 Accepted 56ms 10.375 MiB
#17 Accepted 55ms 10.375 MiB
#18 Accepted 73ms 10.375 MiB
#19 Accepted 66ms 10.375 MiB
#20 Accepted 17ms 10.375 MiB

信息

递交者
类型
递交
题目
P1456 最小总代价
语言
C++
递交时间
2022-03-30 10:39:13
评测时间
2022-03-30 10:39:13
评测机
分数
100
总耗时
600ms
峰值内存
10.5 MiB