First of all, while compiling in the Editor (aka Hot Reloading) is possible, you should not do that very often.
Only do it for minor changes.
Better way to do it is to close your Engine Editor (booting it up again takes a few seconds) and to compile the code in VS.
You do this by rightclicking your project on the right side in the Solution browser and hitting “Build”.
If that’s done, your binaries are updated and you can start the Engine again. You can also close VS if you don’t
need to make any C++ changes during the day.
Now to your problem:
It looks like you are using the wrong function parameters for the overlap functions.
You use “OtherActor” and “OtherComp”, so “AActor” and “UPrimitiveComponent”.
The error tells you that the correct parameters need an additional one.
At some point, Epic changes the overlap functions to also give you the actual component of that the Actor itself. So you know who
actually overlapped (could be that two components use the same overlap function, right? :P)
So it should be this:
UFUNCTION()
void TriggerEnter(class UPrimitiveComponent* ThisComp, class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult & SweepResult);
At least I think it was that order. 