记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:16:17: warning: array subscript has type 'char' [-Wchar-subscripts]
         num[a[i]]++;
                 ^
foo.cc:17:20: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(num[a[i]]>max)
                    ^
foo.cc:19:25: warning: array subscript has type 'char' [-Wchar-subscripts]
             max=num[a[i]];
                         ^
foo.cc:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<a.size();i++)
                 ~^~~~~~~~~
foo.cc:30:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if(i<len||a[i]==maxletter&&i==len)
foo.cc:26:30: warning: 'maxletter' may be used uninitialized in this function [-Wmaybe-uninitialized]
         while(a[i]!=maxletter&&i<len)
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer 2,6d1 < t < t < t < t < t 2ms 384.0 KiB
#2 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#5 Wrong Answer 2,10d1 < i < i < i < i < i 2ms 384.0 KiB

信息

递交者
类型
递交
题目
6-9 哪个字母用得最多
比赛
2020苏青奥赛集训营(2021-3-28课后作业)
语言
C++
递交时间
2021-03-28 21:36:03
评测时间
2021-03-28 21:36:03
评测机
分数
0
总耗时
13ms
峰值内存
384.0 KiB