foo.c: In function 'Sum':
foo.c:3:5: warning: type of 'x' defaults to 'int' [-Wimplicit-int]
int Sum(x) //定义Sum函数
^~~
foo.c:12:9: error: stray '\357' in program
}while (x != 0);
^
foo.c:12:10: error: stray '\274' in program
}while (x != 0);
^
foo.c:12:11: error: stray '\210' in program
}while (x != 0);
^
foo.c:12:12: error: expected '(' before 'x'
}while (x != 0);
^
foo.c:12:18: error: stray '\357' in program
}while (x != 0);
^
foo.c:12:19: error: stray '\274' in program
}while (x != 0);
^
foo.c:12:20: error: stray '\211' in program
}while (x != 0);
^
foo.c: In function 'main':
foo.c:19:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务