feat: add necessary result codes
This commit is contained in:
parent
f1a732a090
commit
f4af939cb6
1 changed files with 10 additions and 8 deletions
|
@ -8,14 +8,16 @@ import (
|
||||||
type Result int32
|
type Result int32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
NotTested Result = 0 // change only with schema change
|
NotTested Result = 1 // change only with schema change
|
||||||
Accepted Result = 1
|
Accepted Result = 2
|
||||||
CompilationError Result = 2
|
WrongAnswer Result = 3
|
||||||
MemoryLimitExceeded Result = 3
|
PresentationError Result = 4
|
||||||
TimeLimitExceeded Result = 4
|
CompilationError Result = 5
|
||||||
RuntimeError Result = 5
|
MemoryLimitExceeded Result = 6
|
||||||
SystemFailDuringTesting Result = 6
|
TimeLimitExceeded Result = 7
|
||||||
Testing Result = 7
|
RuntimeError Result = 8
|
||||||
|
SystemFailDuringTesting Result = 9
|
||||||
|
Testing Result = 10
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrBadResult = errors.New("bad result")
|
var ErrBadResult = errors.New("bad result")
|
||||||
|
|
Loading…
Reference in a new issue