Error to building selected projects

"Good morning, I’m just starting with Unreal Engine and I’ve come across a startup error. In the following code that I show you:

.cpp


.h

In the .build.cs file, I have the following line: “PrivateDependencyModuleNames.AddRange(new string { “EnhancedInput” });”.

I’m getting this series of errors:

10>EnhancedInputSubsystems.h(46): Error C2143: syntax error: missing ‘;’ before ‘’
10>EnhancedInputSubsystems.h(46): Error C4430: missing type specifier; assumed to be int. Note: C++ does not support default-int
10>EnhancedInputSubsystems.h(43): Warning C4263: ‘void UEnhancedInputLocalPlayerSubsystem::AddMappingContext(UInputMappingContext *)’: member function does not override any base class virtual member function
10>EnhancedInputSubsystems.h(59): Warning C4264: ‘void IEnhancedInputSubsystemInterface::AddMappingContext(const UInputMappingContext *,int32,const FModifyContextOptions &)’: no available override for virtual member function from base ‘IEnhancedInputSubsystemInterface’; function is hidden
10>EnhancedInputSubsystemInterface.h(206): Reference C4264: see declaration of ‘IEnhancedInputSubsystemInterface::AddMappingContext’
10>EnhancedInputSubsystemInterface.h(72): Reference C4264: see declaration of ‘IEnhancedInputSubsystemInterface’
10>EnhancedInputSubsystems.h(46): Error C3861: ‘FOnControlMappingsRebuilt_DelegateWrapper’: identifier not found
10>EnhancedInputSubsystems.h(70): Error C2143: syntax error: missing ‘;’ before ‘’
10>EnhancedInputSubsystems.h(70): Error C4430: missing type specifier; assumed to be int. Note: C++ does not support default-int
10>EnhancedInputSubsystems.h(78): Error C4430: missing type specifier; assumed to be int. Note: C++ does not support default-int
Total time in Parallel executor: 79.13 seconds
Total execution time: 79.51 seconds
10>Microsoft.MakeFile.Targets(44,5): Error MSB3073: The command ““C:\Program Files\Epic Games\UE_5.3\Engine\Build\BatchFiles\Build.bat” CursoUECEditor Win64 Development -Project=“D:\UE5\CursoUEC\CursoUEC.uproject” -WaitMutex -FromMsBuild” exited with code 6.

The issue is that I have someone else’s repository who, having exactly the same thing as me, compiles perfectly for them. However, I’m encountering these errors. What could be causing this?"