// Code derived from Stroustrup's PPP2 book// § 5.3.2 Type errors// -and beginning on p 138#include<iostream>usingstd::cout;// calculate area of a rectangleintarea(intlength,intwidth);intmain(){intx0=arena(7);// error: undeclared functionintx1=area(7);// error: wrong number of argumentsintx2=area("seven",2);// error: 1st argument has a wrong typecout<<x0<<'\n'//<<x1<<'\n'//<<x2<<'\n';}intarea(intlength,intwidth){returnlength*width;}