Syntax error quick question

Ok so i did this similar to wat u said and i get two errors:
treated as error- no ‘object’ file generated in the line where the pointer is P->FaceRotation
and uninitialized local variable P used?

here is the code

void AShooterPlayerController::UpdateRotation(float DeltaTime)
{
FRotator NewRotation, ViewRotation;
APawn* P;
NewRotation = ViewRotation;
ViewRotation = GetActorRotation();

P->FaceRotation(NewRotation, DeltaTime);

}