0_0_13366012_337\Main.java:8: 错误: 已在方法 main(String[])中定义了变量 x1
double x1 = sc.nextDouble();
^
0_0_13366012_337\Main.java:10: 错误: 找不到符号
double distance = Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
^
符号: 变量 x2
位置: 类 Main
0_0_13366012_337\Main.java:10: 错误: 找不到符号
double distance = Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
^
符号: 变量 x2
位置: 类 Main
3 个错误
|