Notes
This function is in beta test. Please help improve it in the issues
here.
LeakSanitizer:DEADLYSIGNAL ==13390==ERROR: LeakSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5588b6842520 bp 0x6020000001a0 sp 0x7ffeeca12fc8 T0) ==13390==The signal is caused by a READ memory access. ==13390==Hint: address points to the zero page. #0 0x5588b684251f (/out/package/lab8+0x151f) #1 0x5588b6842566 in Node::equal(Node*) [clone .part.2] (/out/package/lab8+0x1566) #2 0x5588b6842566 in Node::equal(Node*) [clone .part.2] (/out/package/lab8+0x1566) #3 0x5588b68425d4 in Node::contain(Node*) (/out/package/lab8+0x15d4) #4 0x5588b68425bd in Node::contain(Node*) (/out/package/lab8+0x15bd) #5 0x5588b68444fd in choice9() (/out/package/lab8+0x34fd) #6 0x5588b684220a in main (/out/package/lab8+0x120a) #7 0x7f669a680b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #8 0x5588b6842369 in _start (/out/package/lab8+0x1369) LeakSanitizer can not provide additional info. SUMMARY: LeakSanitizer: SEGV (/out/package/lab8+0x151f) ==13390==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