but sketch doesnt compiling properly
That looks to me like it compiled properly. Why do you think it didn't?