#include
using namespace std;
int main() {
int t, c1,c2,c3 ,c4,m,n;
int rick[1000],cab[1000];
while(t–){
cin>>c1>>c2>>c3>>c4;
cin>>n>>m;
for(int i =0;i<n; i++){
cin>>rick[i];
}
for(int i =0;i<m ;i++)
{
cin>>cab[i];
}
int rick_cost =0;
for(int i =0;i<n;i++){
rick_cost+=min(rick[i]*c1,c2);
}
int cab_cost=0;
for(int i =0;i<m;i++)
{
cab_cost+=min(cab[i] *c1,c2);
}
rick_cost =min(rick_cost,c3);
cab_cost = min(cab_cost,c3);
int total_cost = min( rick_cost + cab_cost , c4);
cout<<total_cost<<endl;
}
return 0;
}
Why no output ,help me to debug sir
hello @ankitjha910
pls save ur code here -> https://ide.codingblocks.com/
and share the link with me
I got my mistake here thanks