// Code derived from Stroustrup's PPP2 book// § 8.4 Scope// -and beginning on p 266#include<iostream>usingnamespacestd;voidf(){// g(); // error: g() isn't (yet) in scope}voidg(){f();// ok: f() is in scope}voidh(){// int x = y; // error: y isn't (yet) in scopeintx=0;inty=x;// ok: x is in scopeg();// ok: g() is in scopecout<<y<<'\n';}intmain(){h();}