Help me in solving EZSPEAK problem

My issue

My code

#include <iostream>
using namespace std;

int main() {
	int t;
	cin>>t;

	while(t--)
	{
	    string a;
	    int i=0,c=0;
	    cin>>a;
	   
	    while(i<a.length())
	    {
	        if(a[i]!='a' || a[i]!='e' || a[i]!='i' || a[i]!='o' || a[i]!='u')
	        {
	            c++;
	            if(c==4)
	            {
	                break;
	            }
	        }
	        else
	        {
	            c=0;
	        }
	        i++;
	    }
	    if(c==4)
	    {
	        cout<<"NO"<<endl;
	    }
	    else
	    {
	        cout<<"YES"<<endl;
	    }
	}
	return 0;
}

Problem Link: EZSPEAK Problem - CodeChef

@akashtayade
U have to take input for string’s length too and also in between the condition u have to use && not ||