Skip to content

Commit 8381322

Browse files
committed
Fixing a bug (trailing lines got omitted).
1 parent 15e078b commit 8381322

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

judges/recodex_token_judge/judge.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,13 @@ template <class READER, class LINE_COMPARATOR> class Judge
355355
{
356356
// Check correct file remains ...
357357
bool reportedAny = false;
358+
359+
for (auto &&it : mCorrectLinesBuffer) {
360+
logImpairedCorrectLine(*it.get());
361+
reportedAny = true;
362+
}
363+
mCorrectLinesBuffer.clear();
364+
358365
while (!mCorrectReader.eof() && !bpp::log().isFull(bpp::LogSeverity::ERROR)) {
359366
readNextCorrectLine();
360367
if (mCorrectLine) {
@@ -374,6 +381,13 @@ template <class READER, class LINE_COMPARATOR> class Judge
374381
{
375382
// Check result file remains ...
376383
bool reportedAny = false;
384+
385+
for (auto &&it : mResultLinesBuffer) {
386+
logImpairedResultLine(*it.get());
387+
reportedAny = true;
388+
}
389+
mResultLinesBuffer.clear();
390+
377391
while (!mResultReader.eof() && !bpp::log().isFull(bpp::LogSeverity::ERROR)) {
378392
readNextResultLine();
379393
if (mResultLine) {

0 commit comments

Comments
 (0)