Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

 pwd: /out/package
ppid: 99538
   1: WRITELN echo 123
   2: WRITELN 

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

mumsh $ 123
mumsh $ mumsh $ main.c:47:27: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior main.c:47:27 in 
main.c:47:4: runtime error: index 18446744073709551615 out of bounds for type 'char [1024]'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior main.c:47:4 in 
main.c:47:4: runtime error: addition of unsigned offset to 0x0000013b58b0 overflowed to 0x0000013b58af
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior main.c:47:4 in 
mumsh $ main.c:47:27: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior main.c:47:27 in 
main.c:47:4: runtime error: index 18446744073709551615 out of bounds for type 'char [1024]'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior main.c:47:4 in 
main.c:47:4: runtime error: addition of unsigned offset to 0x0000013b58b0 overflowed to 0x0000013b58af
SUMMARY: UndefinedBe

JOJ Answer

mumsh $ 123
mumsh $ mumsh $ exit