Help me in solving WEPCH problem

My issue

what’s exacctly wrong with my code? i checked the other submissions and my code is almost same as theirs. so why its not getting accepted?

#include <bits/stdc++.h>
using namespace std;

int main() {
	int t;
	cin>>t;
	while(t--){
	 long long int h,x,y1,y2,k;
	 cin>>h>>x>>y1>>y2>>k;
	 long long gun = ceil(h/(float)x);
	 long long laser;
	 long long remainedh = h-(k*y1);
	 if(remainedh<=0) laser = ceil(h/(float)y1);
	 else laser = k+ ceil(remainedh/(float)y2);
	 long long ans = min(gun,laser);
	 cout<<ans;
	 cout<<endl;
	}
	return 0;
	

}
 


### My code

include <bits/stdc++.h>
using namespace std;

int main() {
int t;
cin>>t;
while(t–){
long long int h,x,y1,y2,k;
cin>>h>>x>>y1>>y2>>k;
long long gun = ceil(h/(float)x);
long long laser;
long long remainedh = h-(k*y1);
if(remainedh<=0) laser = ceil(h/(float)y1);
else laser = k+ ceil(remainedh/(float)y2);
long long ans = min(gun,laser);
cout<<ans;
cout<<endl;
}
return 0;

}
````Preformatted text`

Problem Link: https://www.codechef.com/problems/WEPCH

@moracus
plzz refer my c++ code for better understanding of the logic

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
    int t;
    cin>>t;
    while(t--)
    {
        long long int h,x,y1,y2,k;
        cin>>h>>x>>y1>>y2>>k;
        long long int p1=ceil(h*1.0/x*1.0);
        long long int p2=0;
        if(k*y1>=h)
        {
            p2=ceil(h*1.0/y1*1.0);
        }
        else
        {
            p2=k;
            h=h-(k*y1);
            p2+=ceil(h*1.0/y2*1.0);
        }
        cout<<min(p1,p2)<<endl;
    }
}