this is showing runtime error

error
runtime

#1

#include <stdio.h>
#include<math.h>
int main(void) {
int n,s,t,i,w[10000],l[10000],k,max;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d %d
“,s,t);
if(s>t)
w*=1;
else
w*=2;
l*=abs(s-t);
}max=l[0];
for(i=0;i<n;i++)
{
if(l*>max)
max=l*;
k=i;
}
printf(”%d%d",w[k],max);
return 0;
}


#2

because of & not used with s and t and in scanf
used.
use scanf as
scanf("%d%d",&s,&t);


#3

scanf("%d %d
",s,t);

this line is giving runtime error.

it should be

scanf("%d %d
",&s,&t);