Update readPolynomial.cpp

Found an error.