有两个错误1、 double a,b, sum 这行缺少分号2、 main() 函数尾部缺少返回值 ; 因为函数原型需要返回int值, 可以参考用return 0;
double a,b, sum这一行最后少了个分号。导致后面的错误。
第四行 少了个分号而已