Regarding test cases and input in c++

n=int(input())
qua=list(map(int,input().split()))
ing=list(map(int,input().split()))
ans=[]
for i in range(n):
a=True
while(a):
res=int(ing[i]/qua[i])
ans.append(res)
a=False
print(min(ans))
Here n is test cases,qua[] and ing[] are arrays of integers.I don’t know how to take test cases as input and how to take multiple arrays input and how to proceed with question in c++ I know logic but don’t know how to solve in c++ This code is written by me in python language could you please convert it in c++