Record Case Detail

Notes

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

Stderr

LeakSanitizer:DEADLYSIGNAL
==33413==ERROR: LeakSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55f9dd82851b bp 0x000000000000 sp 0x7ffc7d0ae810 T0)
==33413==The signal is caused by a READ memory access.
==33413==Hint: address points to the zero page.
    #0 0x55f9dd82851a in Node::equal(Node*) (/out/package/lab8+0x151a)
    #1 0x55f9dd828526 in Node::equal(Node*) (/out/package/lab8+0x1526)
    #2 0x55f9dd82867e in Node::contain(Node*) (/out/package/lab8+0x167e)
    #3 0x55f9dd8286a0 in Node::contain(Node*) (/out/package/lab8+0x16a0)
    #4 0x55f9dd82a4ed in choice9() (/out/package/lab8+0x34ed)
    #5 0x55f9dd82823a in main (/out/package/lab8+0x123a)
    #6 0x7fb999da2b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #7 0x55f9dd828399 in _start (/out/package/lab8+0x1399)

LeakSanitizer can not provide additional info.
SUMMARY: LeakSanitizer: SEGV (/out/package/lab8+0x151a) in Node::equal(Node*)
==33413==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 23, which should be 0.

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

Your Answer

1

JOJ Answer

1
0
1