Record Case Detail

Notes

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

Stderr

=================================================================
==46860==ERROR: AddressSanitizer: heap-use-after-free on address 0x6040000005f0 at pc 0x55764a90580d bp 0x7ffcf6ab9070 sp 0x7ffcf6ab9060
READ of size 8 at 0x6040000005f0 thread T0
    #0 0x55764a90580c in void __gnu_cxx::new_allocator<std::_Rb_tree_node<Tile> >::construct<Tile, Tile const&>(Tile*, Tile const&) (/out/package/lab7+0x4080c)
    #1 0x55764a90561a in void std::allocator_traits<std::allocator<std::_Rb_tree_node<Tile> > >::construct<Tile, Tile const&>(std::allocator<std::_Rb_tree_node<Tile> >&, Tile*, Tile const&) (/out/package/lab7+0x4061a)
    #2 0x55764a905478 in void std::_Rb_tree<Tile, Tile, std::_Identity<Tile>, std::less<Tile>, std::allocator<Tile> >::_M_construct_node<Tile const&>(std::_Rb_tree_node<Tile>*, Tile const&) (/out/package/lab7+0x40478)
    #3 0x55764a9051e6 in std::_Rb_tree_node<Tile>* std::_Rb_tree<Tile, Tile, std::_Identity<Tile>, std::less<Tile>, std::allocator<Tile> >::_M_create_node<Tile const&>(Tile const&) (

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: 400

[seed]

JOJ Answer

Target: 500

[seed]
[7851]
[6112]
[11542]
[20454]
[20813]
[7168]
[27108]
[26166]

YOU WIN