Notes
This function is in beta test. Please help improve it in the issues
here.
LeakSanitizer:DEADLYSIGNAL ==34160==ERROR: LeakSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5615b1a91430 bp 0x6020000001a0 sp 0x7ffe6e48a018 T0) ==34160==The signal is caused by a READ memory access. ==34160==Hint: address points to the zero page. #0 0x5615b1a9142f (/out/package/lab8+0x142f) #1 0x5615b1a91482 in Node::equal(Node*) [clone .part.1] (/out/package/lab8+0x1482) #2 0x5615b1a91482 in Node::equal(Node*) [clone .part.1] (/out/package/lab8+0x1482) #3 0x5615b1a916d4 in Node::contain(Node*) (/out/package/lab8+0x16d4) #4 0x5615b1a916aa in Node::contain(Node*) (/out/package/lab8+0x16aa) #5 0x5615b1a934bd in choice9() (/out/package/lab8+0x34bd) #6 0x5615b1a911ea in main (/out/package/lab8+0x11ea) #7 0x7f759e0f9b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #8 0x5615b1a91349 in _start (/out/package/lab8+0x1349) LeakSanitizer can not provide additional info. SUMMARY: LeakSanitizer: SEGV (/out/package/lab8+0x142f) ==34160==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