Understand and code the R² metric (goodness of fit) in C++. A must-know concept for evaluating regression models.