Notes
This function is in beta test. Please help improve it in the issues
here.
LeakSanitizer:DEADLYSIGNAL ==33165==ERROR: LeakSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55db47e0d520 bp 0x000000000000 sp 0x7ffe179ad630 T0) ==33165==The signal is caused by a READ memory access. ==33165==Hint: address points to the zero page. #0 0x55db47e0d51f in Node::equal(Node*) (/out/package/lab8+0x151f) #1 0x55db47e0d52b in Node::equal(Node*) (/out/package/lab8+0x152b) #2 0x55db47e0d6fc in Node::contain(Node*) (/out/package/lab8+0x16fc) #3 0x55db47e0d6d6 in Node::contain(Node*) (/out/package/lab8+0x16d6) #4 0x55db47e0f57d in choice9() (/out/package/lab8+0x357d) #5 0x55db47e0d23a in main (/out/package/lab8+0x123a) #6 0x7f0f720fbb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #7 0x55db47e0d399 in _start (/out/package/lab8+0x1399) LeakSanitizer can not provide additional info. SUMMARY: LeakSanitizer: SEGV (/out/package/lab8+0x151f) in Node::equal(Node*) ==33165==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