80分求助

P5707 【深基2.例12】上学迟到

```cpp if(losetime > 0){ 这里->[cout << "0";] // if error cout << losetime / 60<<":"; if(losetime % 60 != 0){ cout << losetime % 60; }else{ cout <<"00"; } return 0; } ```
by hang2023 @ 2023-09-11 10:17:25


# 程序错误 您的程序含有:**低级错误/疏忽** 具体描述:没有判断条件/审题 解决:作用域 ` if(losetime > 0)` 下中的 `cout << 0;` 需要 if 判断条件。 提示: > 什么时候需要 `0`? 在 $\text{hours}<10$ 的时候。
by hang2023 @ 2023-09-11 10:20:02


@[hang2023](/user/989398) 他这个当losetime>0时 不应该只能是第一天早上八点之前吗 那肯定需要0啊
by nsu23010220305 @ 2023-09-11 10:38:32


|