Notes
This function is in beta test. Please help improve it in the issues
here.
/in/ex5.c:108:109: runtime error: unsigned integer overflow: 1 - 64 cannot be represented in type 'unsigned long' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/ex5.c:108:109 in ==72879==WARNING: AddressSanitizer failed to allocate 0xffffffffffffffc1 bytes ==72879==AddressSanitizer's allocator is terminating the process instead of returning 0 ==72879==If you don't like this behavior set allocator_may_return_null=1 ==72879==AddressSanitizer CHECK failed: /build/llvm-toolchain-6.0-QjOn7h/llvm-toolchain-6.0-6.0/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:225 "((0)) != (0)" (0x0, 0x0) #0 0x4e5a05 (/out/package/ex5+0x4e5a05) #1 0x5032b5 (/out/package/ex5+0x5032b5) #2 0x4ebdf6 (/out/package/ex5+0x4ebdf6) #3 0x4ebe36 (/out/package/ex5+0x4ebe36) #4 0x427d68 (/out/package/ex5+0x427d68) #5 0x4dcd09 (/out/package/ex5+0x4dcd09) #6 0x519241 (/out/package/ex5+0x519241) #7 0x515fd6 (/out/package/ex5+0x515fd6) #8 0x7fbf3632ab96 (/lib/x86_64-linux
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
JOJ Answer
w w K w 3 K w 3 K Q w 3 K Q W w + 3 K Q W w + 3 K Q W s w + 3 K Q W s w + 3 K Q W s w x + 3 K Q W Y s w x + 3 K Q W Y s w x + 3 5 K Q W Y s w x + 3 5 9 K Q W Y s w x + 3 5 9 K Q T W Y s w x + 3 5 9 K Q T W Y s w x + 3 5 9 H K Q T W Y s w x + 3 5 9 H K Q T W Y s w x + 5 9 H K Q T W Y s w x + 5 9 H K Q T W Y f s w x + 5 9 H K Q T W Y a f s w x + 5 9 C H K Q T W Y a f s w x + 5 9 C H K Q T W Y a f s w x + 5 9 C H K Q T W Y a f s w x + 5 9 C H K Q T W Y a f s w x + 5 9 C H K Q T W Y a f s w x + 5 9 C H K Q T W Y a f r s w x + 5 9 C D H K Q T W Y a f r s w x + 5 9 C D H K Q T W Y a f s w x + 5 9 C D H K L Q T W Y a f s w x + 5 9 C D H K L Q T W Y a f s w x + 5 9 C D H K L Q T W Y a f p s w x + 5 9 C D H K L Q T W Y a c f p s w x + 5 9 C D H K L Q T W Y a f p s w x + 5 9 C D H K L M Q T W Y a f p s w x + 5 9 C D H K L M Q T W Y a f p s w x + 5 9 C D H K L M Q T U W Y a f p s w x + 5 8 9 C D H K L M Q T U W Y a f p s w x + 5 8 9 B C D H K L