These types of errors occur when the code is written incorrectly and the syntax of the language is not followed properly.