Potrebbe anche più banalmente essere un problema di scheda video o di monitor...
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum