wried and I can run it on Xcode and get the right answer but when I use vim and gcc it then it goes wrong.