I've been working on this for hours I know the errors are staring me in the face but I just can't see them. Any help would be greatly appreciated.
//prb01-1.cpp
//This program calculates the total surface area of a pool
#include <iostream.h>
#include<iomanip.h>
//using namespace std:
int main()
{
const int PRICE_SQ = 3.00;
int depth,
length,
width,
total;
//obtain input data
cout<<"\nEnter the length in feet";
cin>>length;
cout<<"\nEnter width";
cin>>width;
cout<<"\nEnter depth";
cin>>depth;
//Do the calculations
surface=2*depth*(length+width)+length*width;
//Display the results
cout << "\n length;"
cout << "\n width;"
cout << "\n depth;"
cout << "\n total surface area;"
return 0;
}
Error:
warning C4244: 'initializing' : conversion from 'const double' to 'const int', possible loss of data
error C2065: 'surface' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'cout'
error C2146: syntax error : missing ';' before identifier 'cout'
error C2146: syntax error : missing ';' before identifier 'cout'
error C2143: syntax error : missing ';' before 'return'
Error executing cl.exe.
5 error(s), 1 warning(s)