{% if judging is empty or (not showTooLateResult and judging.submission.submittime >= current_team_contest.endtime) or (verificationRequired and not judging.verified) %}
Submission not found for this team or not judged yet.
{% else %}
{% if not judging.valid %}
This submission is being ignored. It is not used in determining your score.
{% endif %}
Problem: {{ judging.submission.contestProblem.shortname }} - {{ judging.submission.contestProblem.problem.name }}
Submitted: {{ judging.submission.submittime | printtime(null, current_team_contest) }}
Language: {{ judging.submission.language.name }}
{% if not showCompile %}
Compilation: {% if judging.result == 'compiler-error' %} failed {% else %} successful {% endif %}
{% endif %}
{% if judging.result != 'compiler-error' %}
Result: {{ judging.result | printResult }}
{% if judging.result == 'correct' and judging.submission.contest.getRuntimeAsScoreTiebreaker() %}
Max. Runtime: {{ "%0.3f s" | format(judging.getMaxRuntime()) }}
{% endif %}
{% endif %} {% if allowDownload %}
{% endif %} {% if showCompile %}
Compilation {% if judging.result == 'compiler-error' %} failed {% else %} successful {% endif %} with the following output
{% if judging.outputCompile(true) is not empty %}
{{ judging.outputCompile(true) }}
{% else %}

There were no compiler errors or warnings.

{% endif %} {% endif %} {% if showSampleOutput and judging.result != 'compiler-error' %}

Run(s) on the provided sample data

{% if runs is empty %}

No sample cases available.

{% else %} {% for run in runs %}
Run {{ run.0.rank }}
{% set judgingRun = run.0.judgingRuns.first %} {% if judgingRun == null or judgingRun.runresult == null %}

Run not finished yet.

{% else %}
Description {{ run.0.description(true) }}
Runtime {{ judgingRun.runtime }} sec
Result {{ judgingRun.runresult | printResult }}
{% if judging.submission.problem.combinedRunCompare %}
Jury/Submission interaction
{% if run.output_run is empty %}

There was no interaction log.

{% else %} {{ run.output_run | interactiveLog(true) }} {% endif %} {% if run.team_message is not empty %}
Judge message
{{  run.team_message }}
{% endif %} {% else %}
Program output
{% if run.output_run is not empty %}
{{ run.output_run }}
{% else %}

There was no program output.

{% endif %} {% if run.team_message is not empty %}
Judge message
{{  run.team_message }}
{% endif %}
Error output (info/debug/errors)
{% if run.output_error is not empty %}
{{ run.output_error }}
{% else %}

There was no stderr output.

{% endif %} {% endif %} {% endif %} {% endfor %} {% endif %} {# not runs is empty #} {% endif %} {# showSampleOutput and judging.result != 'compiler-error' #}
{% endif %} {# not (judging is empty or judging.submission.submittime >= current_team_contest.endtime or (verificationRequired and not judging.verified)) #}