为什么同样的代码,我写的就运行出这个结果,还告诉我是对的,粘贴同学的就正常呢?
#include <stdio.h>
int main()
{
int year = 2014; //今年是2014年
//补全一下代码
if(year%4==0)
{
printf("%s\n", "今年是闰年");
}
else
{
printf("%s\n", "今年是平年");
}
return 0;
}
/249/5199/Dm3H/hello.c: In function 'main':
/249/5199/Dm3H/hello.c:8:9: error: stray '\357' in program
printf("%s\n", "今年是闰年");
^
/249/5199/Dm3H/hello.c:8:9: error: stray '\274' in program
/249/5199/Dm3H/hello.c:8:9: error: stray '\233' in program
/249/5199/Dm3H/hello.c:9:5: error: expected ';' before '}' token
}
^
/249/5199/Dm3H/hello.c:12:9: error: stray '\357' in program
printf("%s\n", "今年是平年");
^
/249/5199/Dm3H/hello.c:12:9: error: stray '\274' in program
/249/5199/Dm3H/hello.c:12:9: error: stray '\233' in program
/249/5199/Dm3H/hello.c:13:5: error: expected ';' before '}' token
}
^