This is not quite correct. Here the code is throwing the integer `r`. Really, the acceptance tests in the `main` function expect a `std::invalid_argument` exception to be thrown. So really, you need something like this:

```c++
throw std::invalid_argument("Divide by zero");
```