/ Test /

Record Case Detail

Notes

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

Stderr

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

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 -6, which should be 0.

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

Your Answer

>> follow
>> trending
1 tag-15: 2102
2 tag-68: 2070
3 tag-1: 2002
4 tag-17: 1965
5 tag-31: 1959
6 tag-42: 1870
7 tag-48: 1857
8 tag-49: 1835
9 tag-4: 1805
10 tag-86: 1787
11 tag-16: 1761
12 tag-12: 1757
13 tag-30: 1728
14 tag-94: 1724
15 tag-70: 1723
16 tag-78: 1702
17 tag-3: 1631
18 tag-57: 1625
19 tag-18: 1622
20 tag-40: 1618
21 tag-83: 1546
22 tag-24: 1541
23 tag-59: 1539
24 tag-45: 1527
25 tag-52: 1520
26 tag-69: 1476
27 tag-58: 1462
28 tag-14: 1450
29 tag-64: 1448
30 tag-67: 1448
31 tag-32: 1429
32 tag-74: 1428
33 tag-85: 1408
34 tag-56: 1406
35 tag-91: 1388
36 tag-44: 1371
37 tag-55: 1365
38 tag-20: 1308
39 tag-79: 1301
40 tag-29: 1285
41 tag-28: 1280
42 tag-8: 1267
43 tag-2: 1261
44 tag-87: 1261
45 tag-54: 1257
46 tag-88: 1240
47 tag-89: 1237
48 tag-11: 1226
>> delete
>> visit
generated-13
friend
Followers: 12
Following: 12
>> comment
>> comment
>> delete
>> visit
generated-18
stranger
Followers: 9
Following: 9
>> comment
>> post
>> trending
1 tag-15: 2105
2 tag-68: 2070
3 tag-1: 2010
4 tag-17: 1965
5 

JOJ Answer

>> follow
>> trending
1 tag-15: 2102
2 tag-68: 2070
3 tag-1: 2002
4 tag-17: 1965
5 tag-31: 1959
6 tag-42: 1870
7 tag-48: 1857
8 tag-49: 1835
9 tag-4: 1805
10 tag-86: 1787
11 tag-16: 1761
12 tag-12: 1757
13 tag-30: 1728
14 tag-94: 1724
15 tag-70: 1723
16 tag-78: 1702
17 tag-3: 1631
18 tag-57: 1625
19 tag-18: 1622
20 tag-40: 1618
21 tag-83: 1546
22 tag-24: 1541
23 tag-59: 1539
24 tag-45: 1527
25 tag-52: 1520
26 tag-69: 1476
27 tag-58: 1462
28 tag-14: 1450
29 tag-64: 1448
30 tag-67: 1448
31 tag-32: 1429
32 tag-74: 1428
33 tag-85: 1408
34 tag-56: 1406
35 tag-91: 1388
36 tag-44: 1371
37 tag-55: 1365
38 tag-20: 1308
39 tag-79: 1301
40 tag-29: 1285
41 tag-28: 1280
42 tag-8: 1267
43 tag-2: 1261
44 tag-87: 1261
45 tag-54: 1257
46 tag-88: 1240
47 tag-89: 1237
48 tag-11: 1226
>> delete
>> visit
generated-13
friend
Followers: 12
Following: 12
>> comment
>> comment
>> delete
>> visit
generated-18
stranger
Followers: 9
Following: 9
>> comment
>> post
>> trending
1 tag-15: 2105
2 tag-68: 2070
3 tag-1: 2010
4 tag-17: 1965
5