/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'void init()':
foo.cc:15:46: warning: array subscript has type 'char' [-Wchar-subscripts]
   15 |     for (int i = 0; i < 64; i++) table[base[i]] = i;
      |                                        ~~~~~~^
foo.cc: In function 'void decode(char*)':
foo.cc:25:31: warning: array subscript has type 'char' [-Wchar-subscripts]
   25 |         (*ret++) = table[str[i]] << 2 | table[str[i + 1]] >> 4;
      |                          ~~~~~^
foo.cc:25:56: warning: array subscript has type 'char' [-Wchar-subscripts]
   25 |         (*ret++) = table[str[i]] << 2 | table[str[i + 1]] >> 4;
      |                                               ~~~~~~~~~^
foo.cc:27:40: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |             (*ret++) = (table[str[i + 1]] & 0x0f) << 4 | table[str[i + 2]] >> 2;
      |                               ~~~~~~~~~^
foo.cc:27:73: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |             (*ret++) = (table[str[i + 1]] & 0x0f) << 4 | table[str[i + 2]] >> 2;
      |                                                                ~~~~~~~~~^
foo.cc:29:39: warning: array subscript has type 'char' [-Wchar-subscripts]
   29 |             (*ret++) = table[str[i + 2]] << 6 | table[str[i + 3]];
      |                              ~~~~~~~~~^
foo.cc:29:64: warning: array subscript has type 'char' [-Wchar-subscripts]
   29 |             (*ret++) = table[str[i + 2]] << 6 | table[str[i + 3]];
      |                                                       ~~~~~~~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read csq, expect 1. 2ms 256.0 KiB

信息

递交者
类型
自测
题目
P1210 字符串解密
语言
C++
递交时间
2022-09-17 20:06:48
评测时间
2022-09-17 20:06:48
评测机
分数
0
总耗时
2ms
峰值内存
256.0 KiB