Compare commits

...

2 commits

Author SHA1 Message Date
dragonmuffin
f4af939cb6 feat: add necessary result codes 2024-08-25 23:17:47 +05:00
dragonmuffin
f1a732a090 feat:add runtime error code 2024-08-25 22:57:40 +05:00

View file

@ -8,13 +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
SystemFailDuringTesting Result = 5
Testing Result = 6
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")