Filling hists

Dear rooters.
why my proram doesn’t (correctly) compiled?(excuse me what i am giving very primitive questions.(i am very much beginner)
Thanks to all.
{
TCanvas c1=new TCanvas(“c1”,"",600,800);
TH1F
h1=new TH1F(“h1”,“s”,100,0.7,1.7);
TH1F* h2=new TH1F(“h2”,“s”,100,0.7,1.7);
TRandom3 r;
{
for(int i=0;i<100000;i++) {

Double_t v1 = r.Gaus(0.987,.07);
Double_t v2 = r.Gaus(1.421,.05);
h1->Fill(v1); 
h2->Fill(v2);"

}
}
h2->Add(h1,1);
h2->Draw();
h1->Draw(“same”);
cout<<“v1”<<" ,v2"<<v1<<v2<<endl;

}

remove the last character from
h2->Fill(v2);"
ie
h2->Fill(v2);

Rene

Thank you mr.Rene
That worked well,
But i would like to print every v1 and v2 which had filled the hists.
How can i do that?
Thank you again.

well! move the cout statement in the loop

Thank you mr.Rene .Al are well.That worked well.
Best regards.
Omadilloh