Does anyone know why that error happends? Ive been searching, and i dont know what to do.

In the IDE, i get the error, but if i wait a second and press f8 then it works..