runtime error why running right on my pc

#include<stdio.h>
void main()
{int t,dist,output,j,i;
char a[6],b[6];
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%s",a);
scanf("%s",b);
scanf("%d",&dist);
output=60*(10*((int)a[0]-(int)b[0])+((int)a[1]-(int)b[1]))+10*((int)a[3]-(int)b[3])+(int)a[4]-(int)b[4]+dist;
printf("%d “,output);
if(output>=3dist)
output=output-dist;
else if(output>2
dist)
output=output/2+dist/2;
else if(output>dist)
output=output/2+dist/2;
printf(”%d\n",output);

}

}

Please always mention the question in the post.

well first never ever use void main
instead use

int main{

//your code

return 0;}

for c programmers

//