#include <iostream.h>

int& getSomething()
{
 int something = 10;
 return something;
} // something gets out of scope

int main(void)
{
  int some;
  some = getSomething(); // some is undefined here

  for(int i = 0; i<2; i++) 
    cout<<some<<endl;

  return 0;
}

