int add [] = p[i] + q[j];

What does that line do? Think about it carefully and be very exact.