C语言error C2065: 'Y' : undeclared identifier怎么破?

include

int main(void)
{
int amount,a;
printf("Do you have any dog?Please input 'Y'or'N'\n");
scanf("%c",&a);

if(a == Y)
{

     printf("Please input the amount of the dogs you have.\n");
     scanf("%d",&amount);
     printf("You have %d dog(s).\n",amount);

}
else if(a == N)
{
     printf("Oh,it's a pity.\n");
}

return 0;

你这Y和N最起码要加单引号吧。