// Code derived from Stroustrup's PPP2 book// § 5.3.3 Non-errors// -and beginning on p 139#include<iostream>usingstd::cout;// calculate area of a rectangleintarea(intlength,intwidth);intmain(){intx4=area(10,-7);// OK: but what's a rectangle with a width of minus 7?intx5=area(10.7,9.3);// OK: but calls area(10,9)charx6=area(100,9999);// OK: but truncates the resultcout<<x4<<'\n'//<<x5<<'\n'//<<x6<<'\n';}intarea(intlength,intwidth){returnlength*width;}