Why i am getting a lot of compilation errors in this following code? It is running properly in my offline idle. Problem code is VITB2001.

#include<stdio.h>
#include<string.h>

int main()
{
char input[150], res[150];
int c,i;

scanf("%s",&input);
strcpy(res,strlwr(input));
c=strlen(res);
for(i=0;i<c;i++)
{
    if(!((res[i]=='a')||(res[i]=='e')||(res[i]=='i')||(res[i]=='o')||(res[i]=='u')||(res[i]=='y')))
        printf(".%c",res[i]);
}

}