UE4.24.2 C++ FPS tutorial has errors in code

I finally resolved the problem #2, after diving during hours in forums.
I simply replaced

FPSCameraComponent->SetupAttachment((GetCapsuleComponent());

by

FPSCameraComponent->SetupAttachment(RootComponent);

■■■■ the UE4 documentation needs some rework!

So I still need to fix the problem #3. #1 and #2 are solved.