public OutcomeInfo[] GetAllOutcomes() { OutcomeInfo[] ret = new OutcomeInfo[outcomes.Count]; outcomes.Values.CopyTo(ret, 0); Array.Sort(ret); return(ret); }
public OutcomeMapper() { outcomes[TestingFailure] = new OutcomeInfo("Ошибка тестирования", InformationKind.Negative); outcomes[CannotJudge] = new OutcomeInfo("Тестирование невозможно", InformationKind.Negative); outcomes[Waiting] = new OutcomeInfo("Ожидание", InformationKind.Neutral); outcomes[Compiling] = new OutcomeInfo("Компилируется", InformationKind.Neutral); outcomes[Running] = new OutcomeInfo("Тестируется", InformationKind.Neutral); outcomes[CompilationError] = new OutcomeInfo("Ошибка компиляции", InformationKind.Negative); }
public ICPCOutcomeMapper() { outcomes[Accepted] = new OutcomeInfo("ОК", InformationKind.Positive); outcomes[TimeLimit] = new OutcomeInfo("Превышен лимит времени", InformationKind.Negative); outcomes[MemoryLimit] = new OutcomeInfo("Превышен лимит памяти", InformationKind.Negative); outcomes[OutputLimit] = new OutcomeInfo("Превышен лимит размера выходного файла", InformationKind.Negative); outcomes[SecurityViolation] = new OutcomeInfo("Нарушение безопасности", InformationKind.Negative); outcomes[RuntimeError] = new OutcomeInfo("Ошибка времени выполнения", InformationKind.Negative); outcomes[WrongAnswer] = new OutcomeInfo("Неверный ответ", InformationKind.Negative); outcomes[PresentationError] = new OutcomeInfo("Неверный формат ответа", InformationKind.Negative); }