Notes
This function is in beta test. Please help improve it in the issues
here.
AddressSanitizer:DEADLYSIGNAL ================================================================= ==33819==ERROR: AddressSanitizer: FPE on unknown address 0x00000051d70a (pc 0x00000051d70a bp 0x7ffdbb859a90 sp 0x7ffdbb859880 T0) #0 0x51d709 (/out/package/calc_mem+0x51d709) #1 0x51b909 (/out/package/calc_mem+0x51b909) #2 0x51a623 (/out/package/calc_mem+0x51a623) #3 0x7f7063a81c86 (/lib/x86_64-linux-gnu/libc.so.6+0x21c86) #4 0x41d909 (/out/package/calc_mem+0x41d909) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: FPE (/out/package/calc_mem+0x51d709) ==33819==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
Bad input Not enough operands Bad input -499 212 Bad input Bad input Bad input -381 -99 310 Bad input Bad input -381 -99 -310 -310 0 1 197 0 0 0 -407 53 215 Bad input Bad input Bad input Bad input Bad input Bad input Bad input Bad input Bad input 0 Not enough operands Bad input -327 310 Bad input Bad input 239 -438 -438 -1.0 -168 245 245 0 -327 0 310 -496 359 Bad input Bad input Bad input Not enough operands Not enough operands 175 -0 318 Bad input Bad input Not enough operands Bad input Bad input Bad input Bad input Not enough operands Not enough operands 355 355 0 Bad input 90 Bad input Divide by zero 355 -526 -0 -0 0 -1 0 -216 90 126 -408 0 -0 -104 355 -526 -0 -0 0 -1 0 -216 90 126 -408 0 -0 -104 -113 355 -526 -0 -0 0 -1 0 -216 90 126 -408 0 -0 -104 -113 0 -1.0 -1.0 Bad input Bad input Bad input 355 -526 -0 -0 0 -1 0 -216 90 126 -408 0 -0 -104 -113 0 -1.0 -1.0 1 47 -338 -338 -0 412 366 -176 0 298 Bad input Bad input Not enough operands Not enough operands Not enough operands Bad input Bad input B
JOJ Answer
Bad input Not enough operands Bad input Bad input Bad input -286 Bad input Bad input Bad input 310 -99 -381 Bad input Bad input Divide by zero Bad input 215 53 -407 0 0 0 197 0 0 310 310 -99 -381 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 Not enough operands Bad input Bad input -327 310 Bad input Bad input 359 -496 310 0 -327 0 245 245 -168 -438 -438 239 -286 Bad input Bad input Bad input Bad input Bad input Bad input Not enough operands Not enough operands 0 175 318 Bad input Bad input Not enough operands Bad input Bad input Bad input Bad input Not enough operands Not enough operands 355 355 Bad input 0 Bad input 90 Bad input Bad input 0 0 -282 90 -216 0 0 0 0 184 355 361 -113 0 0 -282 90 -216 0 0 0 0 184 355 361 Bad input Bad input 0 -113 0 0 -282 90 -216 0 0 0 0 184 355 361 Bad input Bad input Bad input Bad input -176 298 366 412 0 -338 -