Notes
This function is in beta test. Please help improve it in the issues
here.
ASAN:DEADLYSIGNAL ================================================================= ==25944==ERROR: AddressSanitizer: SEGV on unknown address 0x7f55003836d9 (pc 0x7f55c6ceaf52 bp 0x7ffc4821e1a0 sp 0x7ffc4821dda0 T0) ==25944==The signal is caused by a WRITE memory access. #0 0x7f55c6ceaf51 (/lib64/ld-linux-x86-64.so.2+0xff51) #1 0x7f55c6cf2759 (/lib64/ld-linux-x86-64.so.2+0x17759) #2 0x560d901d0292 in print_info(intMatrix&) (/out/package/ex3+0xf292) #3 0x560d901d142b in main (/out/package/ex3+0x1042b) #4 0x7f55c468eb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x560d901d0019 in _start (/out/package/ex3+0xf019) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/lib64/ld-linux-x86-64.so.2+0xff51) ==25944==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
Testing constructor & destructor 1: 4pts
JOJ Answer
Testing constructor & destructor 1: 4pts Matrix Information: rows: 1 cols: 1