Well, I would have to say that the compiler knows which lines of code it doesn't like. Is it possible that you are working with one version of the file and the compiler is trying to make a different version of the file? Or perhaps trying to make a version in a different directory?
Or, have you edited the file but forgot to save it and the compiler is still trying to compile the earlier version of the file? The IDE doesn't autosave changes. You must save the file to disk.
These are two very common mistakes made by new programmers. ;-)