Record Case Detail

Notes

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

Stderr

/in/exam3_matrix.cpp:14:29: runtime error: store to misaligned address 0x7f2508b72f13 for type 'int', which requires 4 byte alignment
0x7f2508b72f13: note: pointer points here
 ed  b1 ff ff 49 89 c0 64 8b  04 25 18 00 00 00 85 c0  59 5e 75 3c 48 8b 74 24  08 31 c0 48 85 f6 74
              ^ 
ASAN:DEADLYSIGNAL
=================================================================
==31418==ERROR: AddressSanitizer: SEGV on unknown address 0x7f2508b72f13 (pc 0x55a7ed5c9008 bp 0x7ffc2631c8f0 sp 0x7ffc2631c8b0 T0)
==31418==The signal is caused by a WRITE memory access.
    #0 0x55a7ed5c9007 in intMatrix::intMatrix(int, int, int) (/out/package/ex3+0x17007)
    #1 0x55a7ed5c2b71 in main (/out/package/ex3+0x10b71)
    #2 0x7f2506516b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x55a7ed5c1369 in _start (/out/package/ex3+0xf369)

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

JOJ Answer

Testing constructor & destructor 4: 4pts
Matrix Information:
rows: 5
cols: 5