1. syntax error:
It refers to an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language.
2. semantic error:
An error, which occurs due to the incorrect logic and a solution is called a semantic error.