#includeIn this example, if the user enters a negative age, an invalid_argument exception will be thrown with the error message "Age cannot be negative." The package library for std::invalid_argument is the C++ Standard Library.#include int main() { int age; std::cout << "Enter your age: "; std::cin >> age; if (age < 0) { throw std::invalid_argument("Age cannot be negative."); } std::cout << "Your age is: " << age << std::endl; return 0; }