Notes
This function is in beta test. Please help improve it in the issues
here.
/in/exam3_matrix.cpp:11:21: runtime error: store to misaligned address 0x7f19fe1f575e for type 'int', which requires 4 byte alignment 0x7f19fe1f575e: note: pointer points here 49 89 c3 b8 ee 00 00 00 31 d2 0f ae 6c 24 40 4c 8b 4c 24 30 4c 8b 44 24 28 48 8b 7c 24 20 48 8b ^ ASAN:DEADLYSIGNAL ================================================================= ==31688==ERROR: AddressSanitizer: SEGV on unknown address 0x7f19fe1f575e (pc 0x55a0b1b92a7d bp 0x7fff3971a060 sp 0x7fff3971a030 T0) ==31688==The signal is caused by a WRITE memory access. #0 0x55a0b1b92a7c in intMatrix::intMatrix(int, int, int) (/out/package/ex3+0x16a7c) #1 0x55a0b1b8c828 in main (/out/package/ex3+0x10828) #2 0x7f19fbb91b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x55a0b1b8aec9 in _start (/out/package/ex3+0xeec9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/ex3+0x16a7c) in intMatrix::intMatrix(int, int, int) ==31688==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 5: 2pts
JOJ Answer
Testing constructor & destructor 5: 2pts Matrix Information: rows: 6 cols: 6