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_28644932_24364\Main.java:1: 错误: 需要class, interface或enum
<span style="font-size:18px;">
^
0_0_28644932_24364\Main.java:1: 错误: 需要class, interface或enum
<span style="font-size:18px;">
 ^
0_0_28644932_24364\Main.java:3: 错误: 非法字符: '#'
#include <iostream>
^
0_0_28644932_24364\Main.java:5: 错误: 非法字符: '#'
#include<cmath>
^
0_0_28644932_24364\Main.java:7: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_28644932_24364\Main.java:9: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_28644932_24364\Main.java:13: 错误: 需要class, interface或enum
const double EPS=1e-5;//精度
^
0_0_28644932_24364\Main.java:15: 错误: 需要class, interface或enum
double f(double x)
^
0_0_28644932_24364\Main.java:21: 错误: 需要class, interface或enum
return temp;
^
0_0_28644932_24364\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_28644932_24364\Main.java:31: 错误: 需要class, interface或enum
double y1=f(begin)-y,y2=f(end)-y;
^
0_0_28644932_24364\Main.java:33: 错误: 需要class, interface或enum
while(fabs(y1-y2)>EPS)//精度判断
^
0_0_28644932_24364\Main.java:39: 错误: 需要class, interface或enum
if(f(mid)>y)
^
0_0_28644932_24364\Main.java:43: 错误: 需要class, interface或enum
else
^
0_0_28644932_24364\Main.java:47: 错误: 需要class, interface或enum
y1=f(begin)-y,y2=f(end)-y;//一定要记得这句代码,否则会陷入死循环
^
0_0_28644932_24364\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_28644932_24364\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_28644932_24364\Main.java:61: 错误: 需要class, interface或enum
scanf("%d",&n);
^
0_0_28644932_24364\Main.java:63: 错误: 需要class, interface或enum
while(n--)
^
0_0_28644932_24364\Main.java:69: 错误: 需要class, interface或enum
scanf("%lf",&y);
^
0_0_28644932_24364\Main.java:71: 错误: 需要class, interface或enum
if(f(0)-y>0||f(100)-y<0)//无解的情况
^
0_0_28644932_24364\Main.java:75: 错误: 需要class, interface或enum
else
^
0_0_28644932_24364\Main.java:81: 错误: 需要class, interface或enum
}
^
0_0_28644932_24364\Main.java:87: 错误: 需要class, interface或enum
}</span>
^
24 个错误


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-12-03 16:54:22, Gzip enabled