The correct answer is: E. No error

The sentence is grammatically correct. The past perfect subjunctive "had come" is used to express a condition that was not fulfilled in the past. The infinitive phrase "to know about his difficulties" is the object of the preposition "about." The past participle phrase "having helped" is the object of the infinitive "would have certainly helped."

The sentence can be paraphrased as follows: "If I had known about his difficulties, I would have certainly helped him."