不是int x没有意义,你最后在加一个return 0;就好了
函数没返回值也可以??在fun前面加个int
加上返回值不就可以了
int fun (int x) { if(x > 20) return 1; else return 0; }