Error: stray '\254' in program; stray ...

Jun 3, 2014 at 4:39pm
I write this simple code and it brings up stray errors 254, 222, 220, 154, 150...

#include<iostream>
#include<stdlib.h>
#include<string>
using namespace std;
int i; string s;
int main()
{
cin>>s;
system("pause");
}

Can anyone help me?
Jun 3, 2014 at 4:49pm
From: http://www.programmingforums.org/post152914.html
It looks like you saved the source file as unicode, specifically UTF-16
Try re-saving the file as ascii.
Jun 3, 2014 at 5:20pm
What text editor are you using that this became an issue in the first place?
Jul 19, 2014 at 6:24pm
Problem is currently fixed.
Could it be the issue caused by some virus? Cause this version of cpp worked without error
Topic archived. No new replies allowed.