Record Case Detail

Notes

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

Stderr

=================================================================
==2161==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 376 byte(s) in 94 object(s) allocated from:
    #0 0x515c30  (/out/package/calc_mem+0x515c30)
    #1 0x51a591  (/out/package/calc_mem+0x51a591)
    #2 0x7fefaf6fab96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 376 byte(s) in 94 object(s) allocated from:
    #0 0x515c30  (/out/package/calc_mem+0x515c30)
    #1 0x51a4bb  (/out/package/calc_mem+0x51a4bb)
    #2 0x7fefaf6fab96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

Direct leak of 216 byte(s) in 54 object(s) allocated from:
    #0 0x515c30  (/out/package/calc_mem+0x515c30)
    #1 0x51b667  (/out/package/calc_mem+0x51b667)

Direct leak of 56 byte(s) in 14 object(s) allocated from:
    #0 0x515c30  (/out/package/calc_mem+0x515c30)
    #1 0x51bf1a  (/out/package/calc_mem+0x51bf1a)

Direct leak of 52 byte(s) in 13 object(s) allocated from:
    #0 0x515c30  (/out/package/calc_mem+0x515c30)
    #1 0x51bfe2  (/out/pack

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Memory Exceeded. 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

-68 
Bad input
Bad input
Bad input
Bad input
Bad input
-102 
-102 
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
0 
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
0 
Bad input
76 
Bad input
Bad input
Bad input
Bad input
Bad input
Divide by zero
Bad input
0 
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
237 -243 135 0 157 -14360 105 309 0 -196 0 -58 -144 0 0 -65 -218 64 -440 -163 364 -405 76 -393 0 101 237 237 474 259 -177 -307 0 36 0 0 0 -189 -260 0 0 -205 423 -410 -410 -296 -615 0 0 481 319 0 192 293 0 220 0 -191 191 0 -255 0 -455 100 -110 175 27225 157 0 0 -171 0 -422 359 -102 -170 -203 19 -324 264 0 346 0 0 -68 
Divide by zero
Bad input
Bad input
Bad input
Bad input
Bad input
0 
0 0 -59 0 0 0 483 314 0 -327 -415 -11 0 354 354 477 0 144 -305 0 0 -336 0 -51 0 237 -243 135 0 157 -14360 105 309 0 -196 0 -58 -144 0 0 -65 -218 64 -440 -163 364 

JOJ Answer

-68
Bad input
Bad input
Bad input
Bad input
Bad input
-102
-102
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
Bad input
Bad input
Bad input
0
Bad input
Bad input
Bad input
Bad input
Bad input
Not enough operands
Bad input
Bad input
Bad input
0
Bad input
Not enough operands
Bad input
Bad input
Bad input
Bad input
Bad input
Divide by zero
Not enough operands
Bad input
0
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
237 
Divide by zero
Bad input
Bad input
Bad input
Bad input
Bad input
Not enough operands
0
0 0 -59 
Bad input
-187
Bad input
0
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
-181 -181 -384 404 -327 12 0 -30 -441 0 0 -59 
211 211 424 -181 -181 -384 404 -327 12 0 -30 -441 0 0 -59 
Bad input
Bad input
Bad input
281 0 298 1 424 -181 -181 -384 404 -327 12 0 -30 -441 0 0 -59 
Bad input
Bad input
Bad input
Not enough operands
Bad input
Not enough operands
Not enough o