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/input.c:227:37: runtime error: index -1 out of bounds for type 'char *[30]' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/input.c:227:37 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==50055==ERROR: AddressSanitizer: SEGV on unknown address 0x00009fff7fff (pc 0x00000051bece bp 0x7ffe89f40dc0 sp 0x7ffe89f3fe70 T0) ==50055==The signal is caused by a READ memory access. #0 0x51becd (/out/package/mumsh_memory_check+0x51becd) #1 0x519ac1 (/out/package/mumsh_memory_check+0x519ac1) #2 0x516411 (/out/package/mumsh_memory_check+0x516411) #3 0x7f557b483b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #4 0x41d1a9 (/out/package/mumsh_memory_check+0x41d1a9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/mumsh_memory_check+0x51becd) ==50055==ABORTING
JOJ Answer
mumsh $ error: missing program mumsh $ exit