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 $ mumsh $ mumsh $ mumsh $ mumsh $ /in/main.c:30:25: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/main.c:30:25 in /in/main.c:30:5: runtime error: index 18446744073709551615 out of bounds for type 'char [2048]' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/main.c:30:5 in /in/main.c:30:5: runtime error: addition of unsigned offset to 0x7ffec366c320 overflowed to 0x7ffec366c31f SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/main.c:30:5 in ================================================================= ==30143==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7ffec366c31f at pc 0x00000051c9d2 bp 0x7ffec366c2f0 sp 0x7ffec366c2e8 WRITE of size 1 at 0x7ffec366c31f thread T0 #0 0x51c9d1 (/out/package/mumsh_memory_check+0x51c9d1) #1 0x7f283269eb96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #2 0x41d2d9 (/out/package/mumsh_memory_check+0x41d2d9) Addr
JOJ Answer
mumsh $ mumsh $ mumsh $ mumsh $ mumsh $ 123 mumsh $ 222 mumsh $ 222 321 mumsh $ 321 mumsh $ 1.txt 2.txt 3.txt 4.txt driver mumsh mumsh_memory_check mumsh $ exit