First, your "return 0" isn't well placed... With this code you may not even see the window :p
You include 2 files and I don't see why (stdafx and SFML/openGL).
But I don't see why there is an openGL error I can't read the full error message it's not helping
NB: IMO your identation is very bad :/