Help me in solving THREEBOX problem

My issue

include
include
using namespace std;

int main() {
int t;
cin>>t;
for(int i=0;i<t;i++)
{
int a,b,c,d;
cin>>a>>b>>c>>d;

    cout<<ceil(double(a+b+c)/d)<<endl;
    
}
return 0;

}
Seems like my code is OK.

My code

#include <iostream>
#include<cmath>
using namespace std;

int main() {
	int t;
	cin>>t;
	for(int i=0;i<t;i++)
	{
	    int a,b,c,d;
	    cin>>a>>b>>c>>d;
	    
	    cout<<ceil(double(double(a+b+c)/d))<<endl;
	    
	}
	return 0;
}

Problem Link: THREEBOX Problem - CodeChef

@hidden_ark
for test case
1
2 2 2 3
your output is 2
but actual answer is 3.