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