解决方法:将#include<stdlib.h>改为#include<math.h> "sqrt"是函数, ”math.h"是表示用标准库中的math.h文件 个人理解为:要引用库中的计算公式 此问题为编程作业时所出现