[Error] Expected Declaration before '}' token

gotoxy(5,35);cout<<"Subjects to be taken in:\n";
cout<<" Subject Code: Subjects:\n";
if (a1>75) {cout<<" HENGCO1 | English Communication 2\n";t1=3;}
if (b1<75) {cout<<" HPAGBAS | Pag-basa at Pagsulat sa iba't ibang Disiplina...\n";t2=3;}
cout<<" HTECCOM | Technical Communication\n",t3=3;
cout<<" HPOLGOV | Politics and Governance\n";t4=4;}
if(c1>=75) {cout<<" FDIFCNC | Differential Calculus\n";t5=4;}
else {cout<<" FADVALG | Advanced Algebra";t5=3;}
if(d1>=75) {cout<<"FPHYSS1 | Physics 1\n";t6=3;}
if(e1>=75) {cout<<" FPHILOG | Philosophy and Logic";t7=3;}

total=(t1+t3+t4+t5+t6+t7+t8+t9)*873+18859;
gotoxy(39,64);cout<<" TOTAL PAYMENT: P" <<"total";
}
} //where it points the error.
system "pause";
return 0;
}
You already have a thread about this program of yours: http://www.cplusplus.com/forum/unices/197477/

In that thread there are good suggestions.
Topic archived. No new replies allowed.