That's just a typical microsoft products bug.
I think the problem is in stdlib.h file
One way fix is then presumably to do
#include <stdlib.h>
before anything else, and another and better fix to install the latest service pack.
Btw., the program technically needs to include <ostream>.
P/S:
Please look following article:
http://support.microsoft.com/kb/243444[
^]