Record Case Detail

Notes

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

Stderr

=================================================================
==117675==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 43280 byte(s) in 5410 object(s) allocated from:
    #0 0x5164d0  (/out/package/calc_mem+0x5164d0)
    #1 0x51c09d  (/out/package/calc_mem+0x51c09d)
    #2 0x51d7a5  (/out/package/calc_mem+0x51d7a5)

Direct leak of 120 byte(s) in 15 object(s) allocated from:
    #0 0x5164d0  (/out/package/calc_mem+0x5164d0)
    #1 0x51b470  (/out/package/calc_mem+0x51b470)
    #2 0x51d7a5  (/out/package/calc_mem+0x51d7a5)

Direct leak of 16 byte(s) in 2 object(s) allocated from:
    #0 0x5164d0  (/out/package/calc_mem+0x5164d0)
    #1 0x51aa24  (/out/package/calc_mem+0x51aa24)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x5164d0  (/out/package/calc_mem+0x5164d0)
    #1 0x51aba3  (/out/package/calc_mem+0x51aba3)

SUMMARY: AddressSanitizer: 43424 byte(s) leaked in 5428 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

289
Bad input
Bad input
Bad input
0 
Bad input
Bad input
Not enough operands
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
414 0 0 -334 -408 1 440 -355 -119 0 0 1 432 -382 347 -225 
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
0
Bad input
Bad input
Bad input
-1 0 -66825 0 409 497 -1 0 310 0 0 490 449 0 264 1 0 1 81608 -321 2 -141 430 -61 0 -306 219 -387 -314 1 389 0 -77 0 414 0 0 -334 -408 1 440 -355 -119 0 0 1 432 -382 347 -225 
-1 0 -66825 0 409 497 -1 0 310 0 0 490 449 0 264 1 0 1 81608 -321 2 -141 430 -61 0 -306 219 -387 -314 1 389 0 -77 0 414 0 0 -334 -408 1 440 -355 -119 0 0 1 432 -382 347 -225 
Bad input
Bad input
0 0 -416 -50 -488 0 -1 -66825 0 409 497 -1 0 310 0 0 490 449 0 264 1 0 1 81608 -321 2 -141 430 -61 0 -306 219 -387 -314 1 389 0 -77 0 414 0 0 -334 -408 1 440 -355 -119 0 0 1 432 -382 347 -225 
Bad input
Bad input
Bad input
Bad input
0 17 -227 -80 0 0 -416 -50 -488 0 -1 -66825 0 409 4

JOJ Answer

Not enough operands
Bad input
0
Bad input
Bad input
Bad input
Bad input
477 250 
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
465
Bad input
Bad input
Bad input
Bad input
0 -10 0 440 -170 465 0 -12 -12 1 0 432 -382 0 0 260 -367 -225 33 345 
Bad input
Bad input
Divide by zero
414 0 461 0 0 0 440 -170 465 0 -12 -12 1 0 432 -382 0 0 260 -367 -225 33 345 
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
Bad input
Bad input
Bad input
Bad input
0
0
Bad input
-102
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
379 0 0 -435 -17622 -507 -288 0 1320 112 -179 
379 0 0 -435 -17622 -507 -288 0 1320 112 -179 
0 0 -435 -17622 -5