Having trouble trying to implement bucket sort algorithm

Normally the line is highlighted that produces the error