Compile Error
foo.cc: In function 'int main()':
foo.cc:18:12: error: invalid operands of types 'double' and 'int' to binary 'operator%'
18 | int h = d % 10;
| ~ ^ ~~
| | |
| | int
| double
foo.cc:19:10: error: 'f' was not declared in this scope
19 | cout << f;
| ^
foo.cc:18:6: warning: unused variable 'h' [-Wunused-variable]
18 | int h = d % 10;
| ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1122 小数点后的数字
- 语言
- C++
- 递交时间
- 2021-12-12 19:42:32
- 评测时间
- 2021-12-12 19:42:32
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes