C++ · Input, output and math
Users mistype. A program that trusts every read can print a confident wrong answer, so it needs to know when a read failed.