#include
using namespace std;
int main()
{
int c1,c2,c3,c4,n,m,a[10],b[10],k=0,l=0,t,h[9];
cin>>t;
for(int j=0;j<t;j++)
{
cin>>c1>>c2>>c3>>c4;
cin>>n>>m;
for(int i=0;i<n;i++)
{
cin>>a[i];
{
if((a[i]*c1)>c2)
{
l=l+c2;
}
else
l=l+(a[i]*c1);
}
}
for(int i=0;i<m;i++)
{
cin>>b[i];
{
if((b[i]*c1)>c2)
{
k=k+c2;
}
else
k=k+(b[i]*c1);
}
}
h[j]=((l<c3?l:c3)+(k<c3?k:c3))<c4?((l<c3?l:c3)+(k<c3?k:c3)):c4;
}
for(int k=0;k<t;k++)
{
cout<<h[k]<<endl;
}
}
how to remove run time error with reference to this code???
what