№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | djm03178 | 152 |
Название |
---|
Your submissions are inaccessible because LightOJ isn't letting me view them. Could you post your code here in a spoiler? In any case, I'm pretty sure changing just printf to cout is not the only cause of RTE.
Fixed, i deleted one link, both code are same only difference is with printf & cout.
Can you post the code in a spoiler?
Fixed
Auto comment: topic has been updated by Naithani (previous revision, new revision, compare).
I guess you mixed printf with std::cout having sync_with_stdio(false) called.
Nops, I have tried approx all combo, remove/ included, that's why it causes me 20+ runtime errors... I can't think of this could happen. I think there is something weird with the lightOj C++ compiler may be old or something else.
Does using cout in both main() and solve() work?
cout using in main() does not give me run time error, but in solve() it gives run time error. I did not check the whole solution in main().
Now I tried, without using solve() and I wrote all the content in main() but still go run time error.
Try your solution with cout but without
ios_base::sync_with_stdio(false); cin.tie(nullptr);
.