1. Syntax errors: These errors occur when the code does not follow the correct syntax of the programming language. This can include missing brackets, incorrect variable names, or incorrect use of operators.
2. Logic errors: These errors occur when the code runs without crashing, but does not produce the expected output. This can happen when there is a mistake in the algorithm or logic of the code, leading to incorrect results.