If the program works on someone else's computer but not yours, it's not the program that has the error; it must be with your setup.
I'd suggest making sure you're linking SFML correctly (includes, libs, DLLs), and make sure you use the correct version for your version of Visual Studio. That said, which version are you using?