各位高手,帮忙看看我这个程序错在哪
#include<iostream>using namespace std;
int main()
{double horizleg,vertleg,area;
horizleg=5.0;
vertleg=7.0;
area=0.5*horizleg*vertleg;int n;
for(n=1;n<=10;n++)
hovertleg+=1.0;
vertleg/=2.0;
arean=0.5*horizleg*vertleg;
cout<<endl
<<"triangle arean="<<arean<<endl;return 0;}