Think about it this way:
If the variable num is a double, then:
num = 1.3;
list[num]
exactly what index is 1.3?
That is why it must be an int and not a double