记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |   for(int j=0;j<t1.size();j++){
      |               ~^~~~~~~~~~
foo.cc:10:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   10 |    ans[t1[j]]++;
      |             ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 8. 4ms 384.0 KiB
#2 Wrong Answer Read 0, expect 2. 3ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Wrong Answer Read 0, expect 5. 26ms 384.0 KiB
#5 Wrong Answer Read 0, expect 3. 67ms 384.0 KiB

信息

递交者
类型
递交
题目
3-1 整数中的数字
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 21:32:46
评测时间
2022-07-28 21:32:46
评测机
分数
20
总耗时
105ms
峰值内存
384.0 KiB