Error in Visual studio when compiling the Gain.sem