Record Case Detail

Notes

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

Stderr

=================================================================
==91170==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffeab6bb180 at pc 0x000000515dd4 bp 0x7ffeab6bb150 sp 0x7ffeab6bb148
READ of size 8 at 0x7ffeab6bb180 thread T0
    #0 0x515dd3  (/out/package/hashtable+0x515dd3)
    #1 0x51503a  (/out/package/hashtable+0x51503a)
    #2 0x7f5243fb2b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41c959  (/out/package/hashtable+0x41c959)

Address 0x7ffeab6bb180 is located in stack of thread T0 at offset 32 in frame
    #0 0x5153bf  (/out/package/hashtable+0x5153bf)

  This frame has 1 object(s):
    [32, 40) 't' <== Memory access at offset 32 is inside this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-use-after-scope (/out/package/hashtable+0x515dd3) 
Shadow bytes around the buggy address:
  0x1000556cf5e0: 00 00 00 00 00 00 00 00 00 

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

0
***End***
1
***End***
2
***End***
3
***End***
4
***End***
5
***End***
6
***End***
7
***End***
8
***End***
9
***End***
10
***End***
11
***End***
12
***End***
13
***End***
14
***End***
15
***End***
16
***End***
17
The value is 29.
***End***
18
***End***
19
***End***
20
***End***
21
***End***
22
***End***
23
***End***
24
***End***
25
***End***
26
***End***
27
***End***
28
***End***
29
***End***
30
The value is 29.
***End***
31
The value is 29.
***End***
32
***End***
33
***End***
34
***End***
35
The value is 3.
***End***
36
***End***
37
***End***
38
***End***
39
***End***
40
***End***
41
***End***
42
***End***
43
***End***
44
***End***
45
***End***
46
The value is 10.
***End***
47
***End***
48
***End***
49
The value is 10.
***End***
50
***End***
51
***End***
52
***End***
53
***End***
54
***End***
55
***End***
56
***End***
57
***End***
58
***End***
59
***End***
60
The value is 3.
***End***
61
***End***
62
***End***
63
***End***
64
***End***
65
***End***
66
***End***
67
The value is 30.
***End***
68
***End***
69