error C2143: syntax error : missing ';' before '}'这属于什么错误
新手上路,求助大神#include <stdio.h>
int main()
{
int cg = 90;
int pm = 2;
if(cg > 90)
{
if(pm <= 3)
{
printf("%s\n","吃大餐");
}
printf("%s\n","买玩具");
}
else
{
printf("%s\n","没有奖励");
}
return 0
}
error C2143: syntax error : missing ';' before '}'
执行 cl.exe 时出错.
1.4.1.obj - 1 error(s), 0 warning(s)