新手求指教 代码错误
#include <iostream>;
using namespace std
int main ()
{
float a,b,c;//three data
float median;// data to deposit the number in the middle
float max;//data to deposit the biggest number
float min;//data to deposit the smallest numeber
bool dateAreok;//date to judge if the number that client input is legal
cout <<"Please enter three different numbers."<<endl;//prompt client to enter three number
cin>>a>>b>>c;//enter numbers
if (a==b||b==c||a==c)
dateAreok=false;
else dateAreok=true;
if (ateAreok){
if(a>b){
max=a;
min=b;}
else {
max=b;
min=a;}
if(c>max){
median=max;
max=c;}
else if(c<min){
median=min;
min=c;}
else c=median;
cout<<"The median of"<<a<<,<<b<<,<<c<<"is"<<median<<"."<<endl;
}
else
cout<<"Please enter three different numbers"<<endl;
return 0;
}
错误代码e:\c++\practise1.cpp(1) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
e:\c++\practise1.cpp(3) : error C2144: syntax error : missing ';' before type 'int'
e:\c++\practise1.cpp(3) : fatal error C1004: unexpected end of file found
求教大神 请帮忙修改
顺便请问有什么工具可以及时发现代码语法错误吗。