Record Case Detail

Notes

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

Stderr

=================================================================
==13873==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7f2b82116c3b in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xfc3b)
    #1 0x55dbe09a2e1d in get_Simple() (/out/package/blackjack+0x2e1d)

SUMMARY: LeakSanitizer: 8 byte(s) leaked in 1 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 23, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

Shuffling the deck
cut at 39
cut at 22
cut at 33
cut at 37
cut at 38
cut at 37
cut at 38
Hand 1 bankroll 6
Player bets 5
Player dealt King of Spades
Dealer dealt Three of Diamonds
Player dealt Six of Diamonds
Player's total is 16
Dealer's hole card is Four of Spades
Dealer dealt Ten of Hearts
Dealer's total is 17
Dealer wins
Player has 1 after 1 hands

JOJ Answer

Shuffling the deck
cut at 39
cut at 22
cut at 33
cut at 37
cut at 38
cut at 37
cut at 38
Hand 1 bankroll 6
Player bets 5
Player dealt King of Spades
Dealer dealt Three of Diamonds
Player dealt Six of Diamonds
Player's total is 16
Dealer's hole card is Four of Spades
Dealer dealt Ten of Hearts
Dealer's total is 17
Dealer wins
Player has 1 after 1 hands