Record Case Detail

Notes

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

Stderr

foo: /in/Vector.c:40: vector_push_back: Assertion `vec->capacity > vec->size' failed.

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


        

JOJ Answer

size: 5000, capacity: 8192
size: 10000, capacity: 16384
size: 15000, capacity: 16384
size: 20000, capacity: 32768
size: 25000, capacity: 32768
size: 30000, capacity: 32768
size: 35000, capacity: 65536
size: 40000, capacity: 65536
size: 45000, capacity: 65536
size: 50000, capacity: 65536
size: 55000, capacity: 65536
size: 60000, capacity: 65536
size: 65000, capacity: 65536
size: 70000, capacity: 131072
size: 75000, capacity: 131072
size: 80000, capacity: 131072
size: 85000, capacity: 131072
size: 90000, capacity: 131072
size: 95000, capacity: 131072
size: 100000, capacity: 131072
size: 105000, capacity: 131072
size: 110000, capacity: 131072
size: 115000, capacity: 131072
size: 120000, capacity: 131072
size: 125000, capacity: 131072
size: 130000, capacity: 131072
size: 135000, capacity: 262144
size: 140000, capacity: 262144
size: 145000, capacity: 262144
size: 150000, capacity: 262144
size: 155000, capacity: 262144
size: 160000, capacity: 262144
size: 165000, capacity: 262144
size: 170000, capacity: 262144
size