I added all the standard libraries and I commented out the TRACE and changed __max to std::max (might work might not).