求大佬指点什么原因unexpected token '{' following declaration of 'main'
#include<stdio.h>int maxchar(int a,int b)
{
if(a>b)
return a;
else
return b;
}
int main
{
int a,b,c,m;
cin<<a<<b<<c;
m=maxchar(maxchar(a,b),c);
cout<<"3个字符串的最大值为"<<m<<endl
}
error C2239: unexpected token '{' following declaration of 'main'