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 $ > > main.c:104:11: runtime error: index 1024 out of bounds for type 'char [1024]' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior main.c:104:11 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==79116==ERROR: AddressSanitizer: SEGV on unknown address 0x0000013b8000 (pc 0x000000515b8c bp 0x7ffe9e9469d0 sp 0x7ffe9e9460a0 T0) ==79116==The signal is caused by a WRITE memory access. #0 0x515b8b (/out/package/mumsh_memory_check+0x515b8b) #1 0x7f570d350b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #2 0x41cd99 (/out/package/mumsh_memory_check+0x41cd99) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/mumsh_memory_check+0x515b8b) ==79116==ABORTING
JOJ Answer
mumsh $ 1"2"3 4'56 mumsh $ exit