Help me in solving CCHOCOLATES problem

My issue

#include<stdio.h>
int mian()
{
long int c,T,X,Y,Z,W,B,i;
scanf(“%li %li %li %li”,&T,&X,&Y,&Z);
for(i=1;i<=T;i++)
{
scanf(“%li\n”,&W);
B=5X+10Y;
c=B/Z;
printf(“%li\t”,c);
}
return 0;
}

My code

#include<stdio.h>
int mian()
{
    long int c,T,X,Y,Z,W,B,i;
    scanf("%li %li %li %li",&T,&X,&Y,&Z);
    for(i=1;i<=T;i++)
    {
        scanf("%li\n",&W);
        B=5*X+10*Y;
        c=B/Z;
        printf("%li\t",c);
    }
    return 0;
}


Learning course: Basic Math using C
Problem Link: Chef and Chocolates Practice Problem in - CodeChef

@balaji133
here refer my c++ code for better understanding of the logic

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	
	while(t--){
	    int x,y,z;
	    cin>>x>>y>>z;
	    int noc=0;
	    int sum;
	    sum=5*x+10*y;
	    if(sum>=z){
	       noc=sum/z;
	    }
	    cout<< noc<<endl;
	}
	return 0;
}