J - Reached Safely Or Not

#include<stdio.h>

int main()
{
int t,m,n,rx,ry,N;
char str[10000];
scanf("%d",&t);
for(int j=1;j<=t;j++)
{
int x=0,y=0;
scanf("%d %d %d %d %d",&m,&n,&rx,&ry,&N);
scanf("%s",str);
for(int i=0;i<N;i++)
{
if(str[i]==‘U’)
y++;
if(str[i]==‘D’)
y–;
if(str[i]==‘R’)
x++;
if(str[i]==‘L’)
x–;
}
if(x==rx&&y==ry)
printf(“case %d: REACHED\n”,j);
else if(x<0||x>m||y<0||y>n)
printf(“case %d: DANGER\n”,j);
else
printf(“case %d: SOMEWHERE\n”,j);

}
return 0;
}

i dont know what’s wrong with this code.it works fine in online editor…

“reached” should be in caps.

Always include the submission link.