// Code derived from Stroustrup's PPP2 book// § 5.5 Run-time errors// -and beginning on p 141#include<iostream>usingstd::cout;// calculate area of a rectangleintarea(intlength,intwidth){returnlength*width;}// calculate area within frameintframed_area(intx,inty){returnarea(x-2,y-2);}intmain(){intx=-1;inty=2;intz=4;// . . .intarea1=area(x,y);intarea2=framed_area(1,z);intarea3=framed_area(y,z);doubleratio=double(area1)/area3;// convert to double to get// floating-point divisioncout<<x<<'\n'//<<y<<'\n'//<<z<<'\n'//<<area1<<'\n'//<<area2<<'\n'//<<area3<<'\n'//<<ratio<<'\n';}