记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |   for(int j = 0; j < s.size(); j++) a[s[j] - '0']++;
      |                  ~~^~~~~~~~~~
foo.cc:20:10: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized]
   20 |  cout << idx;
      |          ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Wrong Answer Read 5416, expect 0. 4ms 384.0 KiB
#4 Accepted 12ms 384.0 KiB
#5 Accepted 66ms 384.0 KiB

信息

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