Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

/in/exam3_matrix.cpp:16:26: runtime error: store to misaligned address 0x7fc5aaab275a for type 'int', which requires 4 byte alignment
0x7fc5aaab275a: note: pointer points here
 e6 86  ff ff 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
              ^ 
ASAN:DEADLYSIGNAL
=================================================================
==25945==ERROR: AddressSanitizer: SEGV on unknown address 0x7fc5aaab275a (pc 0x563dff67bccb bp 0x7ffef9646de0 sp 0x7ffef9646da0 T0)
==25945==The signal is caused by a WRITE memory access.
    #0 0x563dff67bcca in intMatrix::intMatrix(int, int, int) (/out/package/ex3+0x16cca)
    #1 0x563dff675978 in main (/out/package/ex3+0x10978)
    #2 0x7fc5a844eb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x563dff674019 in _start (/out/package/ex3+0xf019)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/out/package/ex3+0x16cca) in intMatrix::intMatrix(int, int, int)
==25945==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