Errors can be Syntax errors, Semantics errors, Logical errors, or Runtime errors. For example, division by 0 will give an error or if the program doesn't give the desired output or if a program leads to an infinite loop condition.