记录详情

Wrong Answer

foo.cc: In function 'void Count(char*, int*)':
foo.cc:6:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
    6 |         for(int i=0;i<strlen(s);i++)
      |                     ~^~~~~~~~~~
foo.cc:11:30: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |                         a[s[i]]++;
      |                           ~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Wrong Answer Standard answer longer than user output. 4ms 460.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Accepted 3ms 516.0 KiB

信息

递交者
类型
递交
题目
P2988 6-9 哪个字母用得最多
语言
C++
递交时间
2023-12-05 16:27:42
评测时间
2023-12-05 16:27:42
评测机
分数
80
总耗时
21ms
峰值内存
516.0 KiB