foo.c: In function 'MergeArr':
foo.c:4:2: error: parameter 'i' is initialized
int i=0,j=0,h=0;
^~~
foo.c:4:2: error: parameter 'j' is initialized
foo.c:4:2: error: parameter 'h' is initialized
foo.c:5:2: error: expected declaration specifiers before 'while'
while(i<arr1_len&&j<arr2_len)
^~~~~
foo.c:21:2: error: expected declaration specifiers before 'if'
if(i>=arr1_len)
^~
foo.c:30:2: error: expected declaration specifiers before 'else'
else
^~~~
foo.c:39:1: error: expected declaration specifiers before '}' token
}
^
foo.c:42:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:52:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
foo.c:2:6: error: old-style parameter declarations in prototyped function definition
void MergeArr(int* arr1,int arr1_len,int* arr2,int arr2_len,int* arr3)
^~~~~~~~
foo.c:65:1: error: expected '{' at end of input
}
^
[Hydro](https://hydro.ac)提供评测服务