Problem: `setup_problem` only cleared the output buffer when `old_problem_id ~= problem_id`. If two different contests both had a problem with the same ID (e.g. `a`), the condition was false and stale output from the previous contest remained visible. Solution: clear the output buffer at the top of `proceed()` whenever `is_new_contest` is true, before any problem setup runs. |
||
|---|---|---|
| .. | ||
| cp | ||