Record Case Detail

Notes

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

Stderr

=================================================================
==35858==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 380 byte(s) in 95 object(s) allocated from:
    #0 0x515d70  (/out/package/calc_mem+0x515d70)
    #1 0x51af39  (/out/package/calc_mem+0x51af39)
    #2 0x7fe406270b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

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

Direct leak of 32 byte(s) in 8 object(s) allocated from:
    #0 0x515d70  (/out/package/calc_mem+0x515d70)
    #1 0x51d700  (/out/package/calc_mem+0x51d700)
    #2 0x7fe4075a8923  (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x387923)

Direct leak of 28 byte(s) in 7 object(s) allocated from:
    #0 0x515d70  (/out/package/calc_mem+0x515d70)
    #1 0x51e4a7  (/out/package/calc_mem+0x51e4a7)

Direct leak of 16 byte(s) in 4 object(s) allocated from:
    #0 0x515d70  (/out/package/calc_mem+0x515d70)
    #1 0x51e830  (/out

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
452
Bad Input
Bad Input
Not Enough Operands
Bad Input
Divide by zero
Bad Input
Bad Input
-307
Bad Input
Bad Input
0
0
Bad Input
144 0 -283 -520 0 -520 -307 207
Not Enough Operands
Bad Input
Not Enough Operands
Not Enough Operands
Not Enough Operands
0 0
0
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
154 -3 -32 312 411 0 -271 -70 -86 115 0 0
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Divide by zero
Bad Input
-512 0
Not Enough Operands
Bad Input
438 0 0 242 0 0 0 -512
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Bad Input
Divide by zero
Bad Input
Not Enough Operands
Bad Input
Not Enough Operands
Not Enough Operands
-242
Bad Input
Bad Input
Bad Input
Bad Input
12 -62799 345 -314
Bad Input
-62734 -62811 345 -314
Bad Input
Bad Input
Bad Input
-13
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
Not Enough Operands
Bad 

JOJ Answer

Not enough operands
452 
Bad input
Bad input
Not enough operands
Bad input
Divide by zero
Bad input
Bad input
-307
Bad input
Bad input
0
0
Bad input
144 0 -283 -520 0 -520 -307 207 0 452 
Not enough operands
Bad input
Not enough operands
Not enough operands
Not enough operands
0 0 
0
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
154 -3 -32 312 411 0 -271 -70 -86 115 0 0 
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Divide by zero
Bad input
-512 0 0 0 
Bad input
438 0 0 242 0 0 0 -512 0 
Bad input
Bad input
Bad input
Bad input
Bad input
Bad input
Divide by zero
Bad input
Not enough operands
Bad input
Not enough operands
Not enough operands
-242 
Bad input
Bad input
Bad input
Bad input
12 -62799 345 -314 
Bad input
-62734 -62811 345 -314 
Bad input
Bad input
Bad input
-13
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
Not enough operands
Bad