F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_33874263_7138\Main.java:4: 错误: 需要class, interface或enum
public classMain{
       ^
0_0_33874263_7138\Main.java:6: 错误: 需要class, interface或enum
	public static void main(String[] args) 
	              ^
0_0_33874263_7138\Main.java:9: 错误: 需要class, interface或enum
		while(laji.hasNext())
		^
0_0_33874263_7138\Main.java:12: 错误: 需要class, interface或enum
			double b=laji.nextDouble();
			^
0_0_33874263_7138\Main.java:13: 错误: 需要class, interface或enum
			double c=laji.nextDouble();
			^
0_0_33874263_7138\Main.java:14: 错误: 需要class, interface或enum
			double d=laji.nextDouble();
			^
0_0_33874263_7138\Main.java:15: 错误: 需要class, interface或enum
			double l=laji.nextDouble();
			^
0_0_33874263_7138\Main.java:16: 错误: 需要class, interface或enum
			double r=laji.nextDouble();
			^
0_0_33874263_7138\Main.java:17: 错误: 需要class, interface或enum
			if(a==0)
			^
0_0_33874263_7138\Main.java:22: 错误: 需要class, interface或enum
					double min=Math.abs(c*l+d);
					^
0_0_33874263_7138\Main.java:23: 错误: 需要class, interface或enum
					System.out.printf("%.2f",Math.max(max, min));
					^
0_0_33874263_7138\Main.java:24: 错误: 需要class, interface或enum
					System.out.println();
					^
0_0_33874263_7138\Main.java:25: 错误: 需要class, interface或enum
				}
				^
0_0_33874263_7138\Main.java:29: 错误: 需要class, interface或enum
					if(xx>=l && xx<=r)
					^
0_0_33874263_7138\Main.java:32: 错误: 需要class, interface或enum
						double min=Math.abs(b*l*l+c*l+d);
						^
0_0_33874263_7138\Main.java:33: 错误: 需要class, interface或enum
						double dian=Math.abs(b*xx*xx+c*xx+d);
						^
0_0_33874263_7138\Main.java:34: 错误: 需要class, interface或enum
						System.out.printf("%.2f",Math.max(dian, Math.max(max, min)));
						^
0_0_33874263_7138\Main.java:35: 错误: 需要class, interface或enum
						System.out.println();
						^
0_0_33874263_7138\Main.java:36: 错误: 需要class, interface或enum
					}
					^
0_0_33874263_7138\Main.java:40: 错误: 需要class, interface或enum
						double min=Math.abs(b*l*l+c*l+d);
						^
0_0_33874263_7138\Main.java:41: 错误: 需要class, interface或enum
						System.out.printf("%.2f", Math.max(max, min));
						^
0_0_33874263_7138\Main.java:42: 错误: 需要class, interface或enum
						System.out.println();
						^
0_0_33874263_7138\Main.java:43: 错误: 需要class, interface或enum
					}
					^
0_0_33874263_7138\Main.java:49: 错误: 需要class, interface或enum
				double min=Math.abs(a*l*l*l+b*l*l+c*l+d);
				^
0_0_33874263_7138\Main.java:50: 错误: 需要class, interface或enum
				System.out.printf("%.2f", Math.max(max, min));
				^
0_0_33874263_7138\Main.java:51: 错误: 需要class, interface或enum
				System.out.println();
				^
0_0_33874263_7138\Main.java:52: 错误: 需要class, interface或enum
			}else
			^
0_0_33874263_7138\Main.java:55: 错误: 需要class, interface或enum
				double xx2=(-2*b-Math.sqrt(4*b*b-12*a*c))/(6*a);
				^
0_0_33874263_7138\Main.java:56: 错误: 需要class, interface或enum
				System.out.println(xx1+" "+xx2);
				^
0_0_33874263_7138\Main.java:57: 错误: 需要class, interface或enum
				double max=Math.abs(a*r*r*r+b*r*r+c*r+d);
				^
0_0_33874263_7138\Main.java:58: 错误: 需要class, interface或enum
				double min=Math.abs(a*l*l*l+b*l*l+c*l+d);
				^
0_0_33874263_7138\Main.java:59: 错误: 需要class, interface或enum
				double dian1=-1;
				^
0_0_33874263_7138\Main.java:60: 错误: 需要class, interface或enum
				double dian2=-1;
				^
0_0_33874263_7138\Main.java:61: 错误: 需要class, interface或enum
				if(xx1>=l && xx1<=r)
				^
0_0_33874263_7138\Main.java:64: 错误: 需要class, interface或enum
				}
				^
0_0_33874263_7138\Main.java:68: 错误: 需要class, interface或enum
				}
				^
0_0_33874263_7138\Main.java:70: 错误: 需要class, interface或enum
				System.out.println();
				^
0_0_33874263_7138\Main.java:71: 错误: 需要class, interface或enum
			}
			^
38 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 02:53:25, Gzip enabled