Help me in solving TAXSAVING problem

My issue

runtime error how to avoid it

My code

#include <stdio.h>

int main() {
    int t;
    scanf("%d",&t);
    for(int i=1; i<=t;i++)
    {
        int x,y;
        scanf("%d %d",x,y);
       printf("%d \n",x-y); 
    }
	// your code goes here
   }


Problem Link: TAXSAVING Problem - CodeChef

@kritipatwa_15
U have to write & before scanning x and y.

include <stdio.h>

int main() {
int t;
scanf(“%d”,&t);
for(int i=1; i<=t;i++)
{
int x,y;
scanf(“%d %d”,&x,&y); //you have not put & to take input from user
printf(“%d \n”,x-y);
}
return 0;
}