运行起来有错误,求解决
#include "stdio.h"main()
{
int x,y;
printf("please input x:");
scanf("%d",&x);
if(x<1)
y=x;
else
if(x>=10) y=3x-1;
else y=2x-1;
printf("y=%d\n",y);
}
运行起来显示: if(x>=10) y=3x-1;
else y=2x-1;
这两句是错误的,错误信息为“statement missing: in functiong main”,求改正