You say that there is an error. What error? The compiler must say something. Be exact.
How many elements are in the third array? How many it should have?
The answer to the first question is on line 23. size2 elements.
What is the value of size2? Line 6 tells that we have no idea. Uninitialized variable.
How many elements are in the second array? size1
How many elements of the second array do you access on the lines 28-30 loop? size2
What is the largest element of parr3 that you write to on line 30? size1+size2-1
PS. One must deallocate appropriately every dynamically allocated block of memory.