Compile Error
foo.cc: In function 'int main()': foo.cc:11:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 11 | for (int i = 0; i < s.length(); i++) | ~~^~~~~~~~~~~~ foo.cc:18:52: error: 'n' was not declared in this scope 18 | cout << fixed << setprecision(2) << double(cnt) / n * 100 << "%" << endl; | ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1106 字符出现的频率
- 语言
- C++
- 递交时间
- 2022-07-18 17:44:01
- 评测时间
- 2022-07-18 17:44:01
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes