God has inscribed His moral laws into our hearts (Romans 2:15). He has manifested Himself plainly through creation (Romans 1:18-20). He is not far from any one of us (Acts 17:26-27). The inability to hear the Gospel is not the problem. Our lack of knowledge is not what condemns us. The real issue is that our sins against God have merited eternal condemnation.
Even though men like Cornelius feared God prior to receiving the message of the gospel, Scripture still records the Lord directing him to the Apostle Peter so that he could receive the good news of salvation. In addition, God does take into account one's ability to understand His commandments in judgement (John 15:22; Romans 2:12-13). Every person who has a rational mind is culpable.
If every unbeliever is automatically saved just because of a lack of knowledge regarding the Person of Christ and His atonement, then the gospel that we preach would be needless. The concept of evangelism would be rendered nonsensical. We should be making the greatest effort possible to ensure that everybody gets a chance to hear the gospel. We should be grateful that God has provided even one way for us to be reconciled with Him (John 14:6; Hebrews 4:14-16).