Siema wszystkim mam problem z skompilowaniem kodu, otóż program ma za zadanie obliczać pole deltoidu jak wpisze się jego wysokości. Będę bardzo wdzięczny jak pomożecie. PS jestem dopiero początkującym :)
#include <iostream>
using namespace std;
int longer,shorter,score;
int main()
{
cout<<"Hi, this is program to calculate a deltoid field"<< endl;
cout<<"Give the length of the longer height:"<< endl;
cin>>longer>>endl;
cout<<"Give the length of the short height:"<<endl;
cin>>shorter>>endl;
if(longer||short==0)
{
cout<<"Bzzz something is wrong"<<endl;
cout<<"Give the length of the longer height:"<<endl;
cin>>longer>>endl;
cout<<"Give the length of the short height:"<<endl;
cin>>shorter>>endl;
score = (longer*shorter)/2;
count<<"This is your score:"<<score endl;
return 0;
}
score = (longer*shorter)/2;
count<<"This is your score:"<<score endl;
return 0;
}