Whats error in this not showing correct ans

#include
#include<stdlib.h>
using namespace std;
int main() {
int testcase,n,m,ans1=0,ans2=0,ans3=0,ans4=0,no,i,j,k,c1,c2,c3,c4,ans5=0;
cin>>testcase;
for(i=0;i<testcase;i++)
{ans1=0;ans2=0;ans3=0;ans4=0;
cin>>c1>>c2>>c3>>c4;
cin>>n>>m;
for(j=0;j<n;j++)
{cin>>no;
ans1+=min(noc1,c2);
}
ans2=min(ans1,c3);
for(j=0;j<m;j++)
{
cin>>no;
ans3+=min(no
c1,c2);
}
ans4=min(ans3,c3);
ans5=(c4,(ans4+ans2));
cout<<"minimum value of fare is "<<ans5<<endl;

}

}

Hello @Namanjain123,

There are two issues with your code:
I have modified it and also mentioned the necessary comments for better understanding:

Hope, this would help.
Give a like, if you are satisfied.

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.