From f4af939cb61915c8d8b6304fa7fe01101320f67e Mon Sep 17 00:00:00 2001 From: dragonmuffin Date: Sun, 25 Aug 2024 23:17:47 +0500 Subject: [PATCH] feat: add necessary result codes --- pkg/models/result.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkg/models/result.go b/pkg/models/result.go index 8988721..d427a6d 100644 --- a/pkg/models/result.go +++ b/pkg/models/result.go @@ -8,14 +8,16 @@ import ( type Result int32 const ( - NotTested Result = 0 // change only with schema change - Accepted Result = 1 - CompilationError Result = 2 - MemoryLimitExceeded Result = 3 - TimeLimitExceeded Result = 4 - RuntimeError Result = 5 - SystemFailDuringTesting Result = 6 - Testing Result = 7 + NotTested Result = 1 // change only with schema change + Accepted Result = 2 + WrongAnswer Result = 3 + PresentationError Result = 4 + CompilationError Result = 5 + MemoryLimitExceeded Result = 6 + TimeLimitExceeded Result = 7 + RuntimeError Result = 8 + SystemFailDuringTesting Result = 9 + Testing Result = 10 ) var ErrBadResult = errors.New("bad result")