Wrong Answer

foo.cc: In function 'int main()':
foo.cc:18:21: warning: array subscript has type 'char' [-Wchar-subscripts]
   18 |             cnt[s[j]] ++;
      |                     ^
foo.cc:19:25: warning: array subscript has type 'char' [-Wchar-subscripts]
   19 |             if (cnt[s[j]]>1)
      |                         ^
foo.cc:11:9: warning: variable 'start' set but not used [-Wunused-but-set-variable]
   11 |     int start=-1;
      |         ^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Wrong Answer Read 0, expect 11. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1108 无重复最长子串
语言
C++
递交时间
2022-07-18 18:31:43
评测时间
2022-07-18 18:31:43
评测机
分数
75
总耗时
8ms
峰值内存
384.0 KiB