本题是ccfcsp201709-1,不知道我写的这个代码错在哪

本题是ccfcsp201709-1
我的代码如下:
#include
int main()
{
int total,num,sum,and;
scanf("%d",&total);
sum=total/10;
num=sum;
and=0;
while(num>=5){
and+=2;
num-=5;}
if(num>=3){
and++; }
printf("%d\n",and+sum);
return 0;
}
最后显示编译错误

编译错误也有提示错误信息吧,看下是哪句代码报错的

测评用的什么编译器呢?
如果是VS高版本,那么scanf可能需要修改为scanf_s
别的看不出有什么编译问题