why i am getting run time error in the following code

#include
using namespace std;
int main(){
int t;
cin>>t;
cin.ignore(256,’\n’);
for(int j=0;j<t;j++){
int flag=0;
string s;
getline(cin,s);
for(int i=0;i<s.length();i++){
if(s[i]==‘n’&&s[i+1]==‘o’&&s[i+2]==‘t’){
if(i==0&&s[i+3]==’ ‘){
flag=1;
break;
}
else if((i+2)==(s.length()-1)){
flag=1;
break;
}
else if(s[i-1]==’ ‘&&s[i+3]==’ '){
flag=1;
break;
}
}
}
if(flag){
cout<<“Real Fancy”<<endl;
}
else
{
cout<<“regular fancy”<<endl;
}
}

}

You are not allowed to ask live contest problems