Help ramu problem

this is my code. I have passed all the test cases except for the test case 0, and cant find the bug. Pls help me out

int main() {
int n, c1,c2,c3,c4,rickNo,cabNo;
cin>>n;
int rickRide[1005],cabRide[1005];
int rCost=0,rTotal=0,cCost=0,cTotal=0,minCost=0;

for(int i=1;i<=n;i++){
	cin>>c1>>c2>>c3>>c4;
	cin>>rickNo>>cabNo;
	for(int j=0;j<rickNo;j++){
		cin>>rickRide[j];
	}
	for(int j=0;j<cabNo;j++){
		cin>>cabRide[j];
	}
	//Total cost of rickshaw
	for(int j=0;j<rickNo;j++){
		rCost += min(c1*rickRide[j],c2);
	}
	rTotal = min(rCost,c3);
	//Total cost of cabs
	for(int j=0;j<cabNo;j++){
		cCost += min(c1*cabRide[j],c2);
	}
	cTotal = min(cCost,c3);
	minCost = min(rTotal+cTotal,c4);
	cout<<minCost<<endl;
}
return 0;

}

hello @mayanktyagi
share ur code using cb ide

how do i share my code using cb ide ?

go to ide -> https://ide.codingblocks.com/
paste ur code.
click on file option (present on top)
there u will get save option click on it.
a link will be generated in search tab,share that link with me

check ur updated code (comment added)->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.