Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
mumsh $ /in/read.c:16:27: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/read.c:16:27 in /in/read.c:16:5: runtime error: addition of unsigned offset to 0x7fff2dd1e740 overflowed to 0x7fff2dd1e73f SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/read.c:16:5 in ================================================================= ==95610==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7fff2dd1e73f at pc 0x00000051bdde bp 0x7fff2dd1e690 sp 0x7fff2dd1e688 WRITE of size 1 at 0x7fff2dd1e73f thread T0 #0 0x51bddd (/out/package/mumsh_memory_check+0x51bddd) #1 0x515571 (/out/package/mumsh_memory_check+0x515571) #2 0x7fdd4ec9eb96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x41ce79 (/out/package/mumsh_memory_check+0x41ce79) Address 0x7fff2dd1e73f is located in stack of thread T0 at offset 31 in frame #0 0x51524f (/out/package/mumsh_memory_check+0x51524f) This fr
JOJ Answer
mumsh $ exit