How should i get an array of all actors pointers for a specific type of actor

I’m trying to get a list of target points in my scene but its throwing me errors.
I’m, currently using in the cpp:

UGameplayStatics::GetAllActorsOfClass(GetWorld(), ATargetPoint::StaticClass(), Waypoints);

UE_LOG(LogTemp, Warning, TEXT("Waypoint count: %s"), Waypoints.Num());

and in the .h:

UPROPERTY()
TArray<AActor*> Waypoints;

Hello! Change this line

UE_LOG(LogTemp, Warning, TEXT("Waypoint count: %s"), Waypoints.Num());

to this line

UE_LOG(LogTemp, Warning, TEXT("Waypoint count: %d"), Waypoints.Num());