0_0_38602609_26352\Main.java:3: 错误: 需要class, interface或enum
public static void main(String[] args) {
^
0_0_38602609_26352\Main.java:6: 错误: 需要class, interface或enum
int t = cin.nextInt();
^
0_0_38602609_26352\Main.java:7: 错误: 需要class, interface或enum
double box[][][] = new double[t][4][3];
^
0_0_38602609_26352\Main.java:8: 错误: 需要class, interface或enum
double point[][][] = new double[t][3][3];
^
0_0_38602609_26352\Main.java:9: 错误: 需要class, interface或enum
for (int k = 0; k < t; k++) {
^
0_0_38602609_26352\Main.java:9: 错误: 需要class, interface或enum
for (int k = 0; k < t; k++) {
^
0_0_38602609_26352\Main.java:9: 错误: 需要class, interface或enum
for (int k = 0; k < t; k++) {
^
0_0_38602609_26352\Main.java:10: 错误: 需要class, interface或enum
for (int i = 0; i < 4; i++) {
^
0_0_38602609_26352\Main.java:10: 错误: 需要class, interface或enum
for (int i = 0; i < 4; i++) {
^
0_0_38602609_26352\Main.java:11: 错误: 需要class, interface或enum
for (int j = 0; j < 3; j++) {
^
0_0_38602609_26352\Main.java:11: 错误: 需要class, interface或enum
for (int j = 0; j < 3; j++) {
^
0_0_38602609_26352\Main.java:13: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:16: 错误: 需要class, interface或enum
for (int ii = 0; ii < 3; ii++) {
^
0_0_38602609_26352\Main.java:16: 错误: 需要class, interface或enum
for (int ii = 0; ii < 3; ii++) {
^
0_0_38602609_26352\Main.java:17: 错误: 需要class, interface或enum
for (int jj = 0; jj < 3; jj++) {
^
0_0_38602609_26352\Main.java:17: 错误: 需要class, interface或enum
for (int jj = 0; jj < 3; jj++) {
^
0_0_38602609_26352\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:23: 错误: 需要class, interface或enum
for (int i = 0; i < t; i++) {
^
0_0_38602609_26352\Main.java:23: 错误: 需要class, interface或enum
for (int i = 0; i < t; i++) {
^
0_0_38602609_26352\Main.java:25: 错误: 需要class, interface或enum
flag=inOrOut(box[i],point[i]);
^
0_0_38602609_26352\Main.java:26: 错误: 需要class, interface或enum
for(int j=0;j<2000;j++) {
^
0_0_38602609_26352\Main.java:26: 错误: 需要class, interface或enum
for(int j=0;j<2000;j++) {
^
0_0_38602609_26352\Main.java:26: 错误: 需要class, interface或enum
for(int j=0;j<2000;j++) {
^
0_0_38602609_26352\Main.java:28: 错误: 需要class, interface或enum
else{
^
0_0_38602609_26352\Main.java:30: 错误: 需要class, interface或enum
flag=inOrOut(box[i],point[i]);//当三角形完全大于视野切面
^
0_0_38602609_26352\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:35: 错误: 需要class, interface或enum
}//当视野与三角形 有交点
^
0_0_38602609_26352\Main.java:39: 错误: 需要class, interface或enum
} else
^
0_0_38602609_26352\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:44: 错误: 需要class, interface或enum
public static boolean inOrOut(double [][]pointa,double [][]pointb) {//当视野三个顶点都在三角形内
^
0_0_38602609_26352\Main.java:46: 错误: 需要class, interface或enum
double s=area(distance(pointb[0],pointb[1]),distance(pointb[0],pointb[2]),distance(pointb[2],pointb[1]));
^
0_0_38602609_26352\Main.java:47: 错误: 需要class, interface或enum
for(int i=1;i<4;i++) {
^
0_0_38602609_26352\Main.java:47: 错误: 需要class, interface或enum
for(int i=1;i<4;i++) {
^
0_0_38602609_26352\Main.java:47: 错误: 需要class, interface或enum
for(int i=1;i<4;i++) {
^
0_0_38602609_26352\Main.java:49: 错误: 需要class, interface或enum
double s2=area(distance(pointa[i],pointb[1]), distance(pointa[i],pointb[2]),distance(pointb[1],pointb[2]));
^
0_0_38602609_26352\Main.java:50: 错误: 需要class, interface或enum
double s3=area( distance(pointa[i],pointb[0]),distance(pointa[i],pointb[2]), distance(pointb[0],pointb[2]));
^
0_0_38602609_26352\Main.java:51: 错误: 需要class, interface或enum
flag=acreage(s1,s2,s3,s);
^
0_0_38602609_26352\Main.java:52: 错误: 需要class, interface或enum
if(flag)break;
^
0_0_38602609_26352\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:56: 错误: 需要class, interface或enum
public static double distance(double []pointx,double []pointy) {
^
0_0_38602609_26352\Main.java:59: 错误: 需要class, interface或enum
double number1=(pointx[1]-pointy[1])*(pointx[1]-pointy[1]);
^
0_0_38602609_26352\Main.java:60: 错误: 需要class, interface或enum
double number2=(pointx[2]-pointy[2])*(pointx[2]-pointy[2]);
^
0_0_38602609_26352\Main.java:61: 错误: 需要class, interface或enum
return Math.sqrt(number0+number1+number2);
^
0_0_38602609_26352\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:63: 错误: 需要class, interface或enum
public static double area(double a,double b ,double c) {
^
0_0_38602609_26352\Main.java:65: 错误: 需要class, interface或enum
return Math.sqrt(p*(p-a)*(p-b)*(p-c));
^
0_0_38602609_26352\Main.java:66: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:67: 错误: 需要class, interface或enum
public static boolean acreage(double s1,double s2,double s3,double s) {
^
0_0_38602609_26352\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:73: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:74: 错误: 需要class, interface或enum
public static void vision(double[][] box,double increment) {
^
0_0_38602609_26352\Main.java:77: 错误: 需要class, interface或enum
int flag[] = new int[3];
^
0_0_38602609_26352\Main.java:78: 错误: 需要class, interface或enum
for (int i = 1; i < 4; i++) {
^
0_0_38602609_26352\Main.java:78: 错误: 需要class, interface或enum
for (int i = 1; i < 4; i++) {
^
0_0_38602609_26352\Main.java:78: 错误: 需要class, interface或enum
for (int i = 1; i < 4; i++) {
^
0_0_38602609_26352\Main.java:80: 错误: 需要class, interface或enum
if (box[i][0] > box[0][0]) {
^
0_0_38602609_26352\Main.java:82: 错误: 需要class, interface或enum
box[i][0] = box[i][0] + increment;
^
0_0_38602609_26352\Main.java:83: 错误: 需要class, interface或enum
} else if (box[i][0] < box[0][0]) {
^
0_0_38602609_26352\Main.java:85: 错误: 需要class, interface或enum
box[i][0] = box[i][0] - increment;
^
0_0_38602609_26352\Main.java:86: 错误: 需要class, interface或enum
} else {
^
0_0_38602609_26352\Main.java:88: 错误: 需要class, interface或enum
if (box[i][1] > box[0][1]) {
^
0_0_38602609_26352\Main.java:90: 错误: 需要class, interface或enum
box[i][1] = box[i][1] + increment;
^
0_0_38602609_26352\Main.java:91: 错误: 需要class, interface或enum
} else if (box[i][1] < box[0][1]) {
^
0_0_38602609_26352\Main.java:93: 错误: 需要class, interface或enum
box[i][1] = box[i][1] - increment;
^
0_0_38602609_26352\Main.java:94: 错误: 需要class, interface或enum
} else {
^
0_0_38602609_26352\Main.java:96: 错误: 需要class, interface或enum
if (box[i][2] > box[0][2]) {
^
0_0_38602609_26352\Main.java:98: 错误: 需要class, interface或enum
box[i][2] = box[i][2] + increment;
^
0_0_38602609_26352\Main.java:99: 错误: 需要class, interface或enum
} else if (box[i][2] < box[0][2]) {
^
0_0_38602609_26352\Main.java:101: 错误: 需要class, interface或enum
box[i][2] = box[i][2] - increment;
^
0_0_38602609_26352\Main.java:102: 错误: 需要class, interface或enum
}else {
^
0_0_38602609_26352\Main.java:104: 错误: 需要class, interface或enum
box[i][2] = box[i][2];
^
0_0_38602609_26352\Main.java:105: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:110: 错误: 需要class, interface或enum
for (int i = 1; i < 4; i++) {
^
0_0_38602609_26352\Main.java:110: 错误: 需要class, interface或enum
for (int i = 1; i < 4; i++) {
^
0_0_38602609_26352\Main.java:113: 错误: 需要class, interface或enum
box[i][2] = (box[i][2] - box[0][2]) * (box[i][0] - box[0][0]) / (number[i - 1] - box[0][0]) + box[0][2];
^
0_0_38602609_26352\Main.java:114: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:117: 错误: 需要class, interface或enum
box[i][2] = (box[i][2] - box[0][2]) * (box[i][1] - box[0][1]) / (number[i - 1] - box[0][1]) + box[0][2];
^
0_0_38602609_26352\Main.java:118: 错误: 需要class, interface或enum
} else {
^
0_0_38602609_26352\Main.java:120: 错误: 需要class, interface或enum
box[i][1] = (box[i][1] - box[0][1]) * (box[i][2] - box[0][2]) / (number[i - 1] - box[0][2]) + box[0][1];
^
0_0_38602609_26352\Main.java:121: 错误: 需要class, interface或enum
}
^
0_0_38602609_26352\Main.java:126: 错误: 需要class, interface或enum
public static boolean pointInTetrahedro
|