I need help with simple piece of c++ code getting errors - MPGH