Errors
What keeps your program from running correctly?
- Syntax errors
incorrect C+ syntax (e.g. missing semicolon)
- Run-time errors
the program compiles but stops running
e.g. division by zero
e.g. entering the wrong type of data
- Logic errors
the program runs, but produces the wrong output
e.g. area = base + height
the hardest to detect