Record Case Detail

Notes

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

Stderr

AddressSanitizer:DEADLYSIGNAL
=================================================================
==62886==ERROR: AddressSanitizer: stack-overflow on address 0x7ffcaa2a7000 (pc 0x7fc6f9ac790d bp 0x7ffcaa29a3f0 sp 0x7ffcaa299d10 T0)
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer: nested bug in the same thread, aborting.

Hints

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

However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.

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

Your Answer


        

JOJ Answer

Input a string: * Choose 1 to replace a character or 2 to delete a character:   Delete character: New string:  b  b bb  bb b b  b   bbb    b  bbbbbb     b  b bbb    bb   b b   b bbbb   b b  bb bb  b   bb     b b b     b  bb b bb bb bbbb  b b b b bbbb   b  b  b  b  bbbb  bb b      b       bbb b b bb   bb   bbbb b b bb  bb b b bb b     bb  b   bbbbb b b bbbbbbbbbb b bbbbb    bbb b b bbbbb   bb  b bb b b  b  bbb    bb b   b b   b  bb bbbb b bbb  bbbbbbb  b bb   b   b bb b  bbb   bbbbbb bbb  bb  b b b    bbbb    b b  b bbb  b   b b b b b   bbbb    b   bbbb b b    b bb   b b    bb bbb bb  bbb bb   bb  b  b  b       b    b bb     b   bbbbbb    b b  bbb  b bb b  b    b b bbbb   b bb bb bbbbbbbb    bb bbb    bb  bb bbbbbbbb  b b bbbbbbbbbbb b bbb b b bbbb  b  b   b     bbb b    bbb b  b     bb b bb b   b bbb b  bb  b b b  bbbb    b   b bb bbb bb  bbb b b b b  bb    bbb bbb   b    bb b b       bbbbbbbbb b bbb  bbbb  b  bbbb       bb     bb b    bbbb   bb b bbb   b    b  bb b   b   bb  bbbb bbbbb b bb   bb bbb b  b b b