Record Case Detail

Notes

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

Stderr

=================================================================
==35667==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 20312 byte(s) in 5078 object(s) allocated from:
    #0 0x515ea0  (/out/package/calc_mem+0x515ea0)
    #1 0x51bbd5  (/out/package/calc_mem+0x51bbd5)
    #2 0x51c687  (/out/package/calc_mem+0x51c687)
    #3 0x7f7849f58c86  (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)

Direct leak of 16844 byte(s) in 4211 object(s) allocated from:
    #0 0x515ea0  (/out/package/calc_mem+0x515ea0)
    #1 0x51b079  (/out/package/calc_mem+0x51b079)
    #2 0x51c687  (/out/package/calc_mem+0x51c687)
    #3 0x7f7849f58c86  (/lib/x86_64-linux-gnu/libc.so.6+0x21c86)

Direct leak of 1128 byte(s) in 282 object(s) allocated from:
    #0 0x515ea0  (/out/package/calc_mem+0x515ea0)
    #1 0x51ab67  (/out/package/calc_mem+0x51ab67)

SUMMARY: AddressSanitizer: 38284 byte(s) leaked in 9571 allocation(s).

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

Not enough operands
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Not enough operands
Bad input
Not enough operands
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
0x602000000650 0x602000000630 0x602000000610 0x6020000005f0 0x6020000005d0 0x6020000005b0 0x602000000590 0x602000000570 0x602000000550 0x602000000530 0x602000000510 0x6020000004f0 0x6020000004d0 0x6020000004b0 0x602000000490 0
Bad input
Divide by zero
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
0x602000001050 0x602000001030 0x602000001010 0x602000000ff0 0x602000000fd0 0x602000000fb0 0x602000000f90 0x602000000f70 0x602000000f50 0x602000000f30 0x602000000f10 0x602000000ef0 0x602000000ed0 0x602000000eb0 0x602000000e90 0x602000000e70 0x602000000e50 0x602000000e30 0x602000000e10 0x602000000df0 0x602000000dd0 0x602000000db0 0x602000000d90 0x602000000d70 0x602000000d50 0x602000000d30 0x602000000d10 0x60200

JOJ Answer

Not enough operands
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Not enough operands

Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
0 151 -287 0 -329 -414 471 471 0 0 0 -447 293 251 
0
Bad input
Divide by zero
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
-397 -480 24 -191 421 486 -237 0 209 101617 1 -201 -72 147 121 493 -287 184 0 0 0 0 151 -287 0 -329 -414 471 471 0 0 0 -447 293 251 
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Not enough operands
Not enough operands
Not enough operands
Not enough operands
Bad input
Bad input
Bad input
0
Bad in