A question about coding (bar chart race)

I used the code, but it says “The local variable barLength may not have been initialized”