pls tell me how this code is wrong

I keep getting a ‘too few arguments in function intersection’ error in this program. I am trying to solve ‘CULTURAL PROGRAM’ problem in INOI 2015, practice round 1. i am using c to solve the program. I am just a beginner so pls help.
#include <stdio.h>
int Intersection(int arr1[100], int arr2[100], int m, int n,int x)
int i = 0, j = 0;
while(i < m && j < n)
if(arr1[i] < arr2[j])
else if(arr2[j] < arr1[i])
x = arr2[j++];
int main()
int a,n;
char m,o,p,q,r[100],s[100],t[100],x,arr1[100],arr2[100];
int numberOfChars = 0;
char l;
int numberOfCharsInArray(char
scanf("%d", &n);
for (a = 0; a <= n; a++)
scanf("%d", &r , “%d”, &s);
r[a] = r;
s[a] = s;
t[a]; range(r[a],s[a]);
for(a = 0; a <= n; a++)
arr1[a] = t[a];
arr2[a] = t[a+1];
m = sizeof(arr1)/sizeof(arr1[0]);
o = sizeof(arr2)/sizeof(arr2[0]);
Intersection(arr1, arr2, m, n);
l = strcpy(x,(x+1));

while (*l++){
return numberOfChars;
return 0;

you are giving 5 parameters when you are defining the Intersection function but you are passing only 4 arguments while calling it in main() that is why it is giving this error