Update quadratic.cpp

No magic constant. No else branch. check_values now displays an error message in the corresponding root