/ 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

>> like
>> 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
>> 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
>> like
>> unlike
>> delete
>> unlike
>> follow
>> follow
>> unlike
Error: generated-11 cannot unlike post #6 of generated-9!
generated-11 has not liked post #6 of generated-9.
>> visit
generated-4
following
Followers: 12
Following: 5
>> comment
>> trending
1 tag-15: 2102
2 tag-68: 2070
3 tag-1: 2002
4 tag-17: 1965
5 tag-31: 1960
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

JOJ Answer

>> like
>> 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
>> 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
>> like
>> unlike
>> delete
>> unlike
>> follow
>> follow
>> unlike
Error: generated-11 cannot unlike post #6 of generated-9!
generated-11 has not liked post #6 of generated-9.
>> visit
generated-4
following
Followers: 12
Following: 5
>> comment
>> trending
1 tag-15: 2102
2 tag-68: 2070
3 tag-1: 2002
4 tag-17: 1965
5 tag-31: 1960
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