Record Case Detail

Notes

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

Stderr

=================================================================
==75727==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff042bce10 at pc 0x5570642cdd51 bp 0x7fff042bb610 sp 0x7fff042bb600
READ of size 4 at 0x7fff042bce10 thread T0
    #0 0x5570642cdd50 in MyBrain::getDraw(Tile) (/out/package/lab7+0x32d50)
    #1 0x5570642d2c5b in Game::initHand(bool) (/out/package/lab7+0x37c5b)
    #2 0x5570642d25f8 in Game::Game(Brain*, Brain*, int) (/out/package/lab7+0x375f8)
    #3 0x5570642c9518 in main (/out/package/lab7+0x2e518)
    #4 0x7f301363ab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #5 0x5570642c8aa9 in _start (/out/package/lab7+0x2daa9)

Address 0x7fff042bce10 is located in stack of thread T0 at offset 624 in frame
    #0 0x5570642c8b99 in main (/out/package/lab7+0x2db99)

  This frame has 10 object(s):
    [32, 36) 'leastScore'
    [96, 100) 'seed'
    [160, 176) 'result'
    [224, 280) 'player2'
    [320, 352) '<unknown>'
    [384, 416) '<unknown>'
    [448, 624) 'pl

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

Target: 200

[seed]

JOJ Answer

Target: 200

[seed]
[149]
[12717]
[6028]
[1389]
[31870]
[14234]
[15884]
[31062]

YOU WIN