A compiler executes each program statement as soon as it is translated.
The statement that logic errors are easily identified when a program is compiled is false, because the compiler locates only syntax errors, but logic errors can be eliminated only through careful examination of your program.
Logic errors are usually more difficult to find and resolve than syntax errors.