Why am I getting errors in VS 2017

When I run code in VS 2017 in an Unreal Engine project I get the following errors in the output screen:
1>------ Rebuild All started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Rebuild All started: Project: SurvivalInventory123Ttest, Configuration: Development_Editor x64 ------
2>Cleaning SurvivalInventory123TtestEditor Binaries…
2>Performing full C++ include scan (building a new target)
2>Creating makefile for SurvivalInventory123TtestEditor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>Parsing headers for SurvivalInventory123TtestEditor
2> Running UnrealHeaderTool “C:\UnrealEngineProjects\SurvivalInventory123Ttest\SurvivalInventory123Ttest.uproject” “C:\UnrealEngineProjects\SurvivalInventory123Ttest\Intermediate\Build\Win64\SurvivalInventory123TtestEditor\Development\SurvivalInventory123TtestEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
2>Reflection code generated for SurvivalInventory123TtestEditor in 7.3356377 seconds
2>Distributing 9 actions to XGE
2>--------------------Project: Default-------------------------------------------
2>ModuleVersionResource.rc.inl (0:00.07 at +0:00)
2>PCLaunch.rc (0:00.10 at +0:00)
2>SharedPCH.Engine.cpp (0:18.37 at +0:00)
2>SurvivalInventory123Ttest.cpp (0:00.42 at +0:18)
2>MyCharacter2.cpp (0:00.46 at +0:18)
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(39): error C2653: ‘AVRCharacter’: is not a class or namespace name
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(39): error C2276: ‘&’: illegal operation on bound member function expression
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(39): error C2660: ‘UInputComponent::BindAxis’: function does not take 2 arguments
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(40): error C2653: ‘AVRCharacter’: is not a class or namespace name
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(40): error C2276: ‘&’: illegal operation on bound member function expression
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(40): error C2660: ‘UInputComponent::BindAxis’: function does not take 2 arguments
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(45): error C2653: ‘AVRCharacter’: is not a class or namespace name
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(47): error C2065: ‘Camera’: undeclared identifier
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(47): error C2227: left of ‘->GetForwardVector’ must point to class/struct/union/generic type
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(47): note: type is ‘unknown-type’
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(47): error C3861: ‘AddMovementInput’: identifier not found
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(50): error C2653: ‘AVRCharacter’: is not a class or namespace name
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(52): error C2065: ‘Camera’: undeclared identifier
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(52): error C2227: left of ‘->GetRightVector’ must point to class/struct/union/generic type
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(52): note: type is ‘unknown-type’
2>C:\UnrealEngineProjects\SurvivalInventory123Ttest\Source\SurvivalInventory123Ttest\MyCharacter2.cpp(52): error C3861: ‘AddMovementInput’: identifier not found
2>
2>Error executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe (tool returned code: 2)
2>SurvivalInventory123Ttest.init.gen.cpp (0:00.48 at +0:18)
2>MyCharacter2.gen.cpp (0:00.68 at +0:18)
2>---------------------- Done ----------------------
2>
2> Rebuild All: 0 succeeded, 1 failed, 0 skipped
2>
2>
2>
2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\UnrealEngineProjects\SurvivalInventory123Ttest\Binaries\Win64\UE4Editor-SurvivalInventory123Ttest.dll
2>Total build time: 32.21 seconds (XGE executor: 0.00 seconds)
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(49,5): error MSB3073: The command ““C:\Program Files\Epic Games\UE_4.19\Engine\Build\BatchFiles\Rebuild.bat” SurvivalInventory123TtestEditor Win64 Development “C:\UnrealEngineProjects\SurvivalInventory123Ttest\SurvivalInventory123Ttest.uproject” -WaitMutex -FromMsBuild” exited with code -1.
2>Done building project “SurvivalInventory123Ttest.vcxproj” – FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

Please Advise