记录详情

Accepted

foo.cc: In function 'void work()':
foo.cc:88:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   88 |         for(i = 0; i < strlen(q1[h1].str); i++) {
      |                    ~~^~~~~~~~~~~~~~~~~~~~
foo.cc:97:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   97 |         for(i = 0; i < strlen(q2[h2].str); i++) {      //加快搜索的速度,同理从目标开始,方向,并根据逆向规则进行BFS
      |                    ~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:110:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  110 |     scanf("%s%s", q1[0].str, q2[0].str);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 2.125 MiB
#2 Accepted 4ms 2.125 MiB
#3 Accepted 3ms 2.25 MiB
#4 Accepted 3ms 2.125 MiB
#5 Accepted 4ms 2.25 MiB

信息

递交者
类型
递交
题目
P1074 字串变换
语言
C++
递交时间
2022-07-27 16:48:25
评测时间
2022-07-27 16:48:25
评测机
分数
50
总耗时
18ms
峰值内存
2.25 MiB