Code:I've been trying to resolve a problem that was given at school, but as a rookie in C, I've been having problems. Here's what's asked: Create a function named intersection (void) that receives two vectors (int), the number of elements of the first vector (int), the number of elements of the second vector (int), and returns a third vector constituted by the elements that appear on both the first and second vector. The function should also return the number of elements that are present in the third vector. Eg: If the two vectors are: u= <1,2,3,4>, v<2,5,6,7> It should return: w=<2>, size= 1 Note: I’m sorry for the miswritten words…I’m not English, and am translating the problem from my birth language :/ And I'm using Visual C++2008 Here's what I've done so far : #include <stdio.h> void intersection (int *a, int n_a, int *b, int n_b, int *w, int *n_w) { int i; int x; x = 0; for (i=0; i<n_a; i++) { if (a[i] == b[i]) w[i]=a[i]; else 0; } for (i=0; i<n_a; i++) { if (w[i] == x) x++; else 0; } } So, when I compile the function, it has no errors or warnings, but when I try to submit it, it says "Compile Time Error". Can someone help me pointing out what's wrong?? Thank you very much. I used int *w, int *n_w to express the output arguments.