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_34683369_19902\Main.java:1: 错误: 需要class, interface或enum
private final static int N=1001;
                     ^
0_0_34683369_19902\Main.java:2: 错误: 需要class, interface或enum
    private static List<String> v=new ArrayList<>(N);
                   ^
0_0_34683369_19902\Main.java:3: 错误: 需要class, interface或enum
    private static int[] fn =new int[N];
                   ^
0_0_34683369_19902\Main.java:4: 错误: 需要class, interface或enum
    private static double MIN=-1e9;
                   ^
0_0_34683369_19902\Main.java:5: 错误: 需要class, interface或enum
    private static double limit=0.5;
                   ^
0_0_34683369_19902\Main.java:6: 错误: 需要class, interface或enum
    private static int n;
                   ^
0_0_34683369_19902\Main.java:7: 错误: 需要class, interface或enum
    private static int[] left =new int[N];
                   ^
0_0_34683369_19902\Main.java:8: 错误: 需要class, interface或enum
    private static int[] pre =new int[N];
                   ^
0_0_34683369_19902\Main.java:9: 错误: 需要class, interface或enum
    private static int[] used =new int[N];
                   ^
0_0_34683369_19902\Main.java:10: 错误: 需要class, interface或enum
    private static double[][] G =new double[N][N];
                   ^
0_0_34683369_19902\Main.java:11: 错误: 需要class, interface或enum
    private static double[] lx =new double[N];
                   ^
0_0_34683369_19902\Main.java:12: 错误: 需要class, interface或enum
    private static double[] ly =new double[N];
                   ^
0_0_34683369_19902\Main.java:13: 错误: 需要class, interface或enum
    private static double[] slack =new double[N];
                   ^
0_0_34683369_19902\Main.java:16: 错误: 需要class, interface或enum
    public static void main(String[] args) {
                  ^
0_0_34683369_19902\Main.java:18: 错误: 需要class, interface或enum
        int t=cin.nextInt();
        ^
0_0_34683369_19902\Main.java:19: 错误: 需要class, interface或enum
        while(t>0) {
        ^
0_0_34683369_19902\Main.java:21: 错误: 需要class, interface或enum
            int n = cin.nextInt();
            ^
0_0_34683369_19902\Main.java:22: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
            ^
0_0_34683369_19902\Main.java:22: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
                            ^
0_0_34683369_19902\Main.java:22: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
                                   ^
0_0_34683369_19902\Main.java:24: 错误: 需要class, interface或enum
                left[i] = -1;
                ^
0_0_34683369_19902\Main.java:25: 错误: 需要class, interface或enum
            }
            ^
0_0_34683369_19902\Main.java:26: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
                            ^
0_0_34683369_19902\Main.java:26: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
                                   ^
0_0_34683369_19902\Main.java:27: 错误: 需要class, interface或enum
                for (int j = 0; j < n; j++) {
                                ^
0_0_34683369_19902\Main.java:27: 错误: 需要class, interface或enum
                for (int j = 0; j < n; j++) {
                                       ^
0_0_34683369_19902\Main.java:29: 错误: 需要class, interface或enum
                }
                ^
0_0_34683369_19902\Main.java:31: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
                            ^
0_0_34683369_19902\Main.java:31: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
                                   ^
0_0_34683369_19902\Main.java:33: 错误: 需要class, interface或enum
            }
            ^
0_0_34683369_19902\Main.java:35: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
            ^
0_0_34683369_19902\Main.java:35: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
                            ^
0_0_34683369_19902\Main.java:35: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) {
                                   ^
0_0_34683369_19902\Main.java:37: 错误: 需要class, interface或enum
                ans += ly[i];
                ^
0_0_34683369_19902\Main.java:38: 错误: 需要class, interface或enum
            }
            ^
0_0_34683369_19902\Main.java:40: 错误: 需要class, interface或enum
        }
        ^
0_0_34683369_19902\Main.java:42: 错误: 需要class, interface或enum
    }
    ^
0_0_34683369_19902\Main.java:43: 错误: 需要class, interface或enum
    public static void init(List<String> vv, int[] fnn){
                  ^
0_0_34683369_19902\Main.java:45: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
        ^
0_0_34683369_19902\Main.java:45: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
                    ^
0_0_34683369_19902\Main.java:45: 错误: 需要class, interface或enum
        for(int i=0;i<n;i++){
                        ^
0_0_34683369_19902\Main.java:47: 错误: 需要class, interface或enum
        }
        ^
0_0_34683369_19902\Main.java:49: 错误: 需要class, interface或enum
    }
    ^
0_0_34683369_19902\Main.java:52: 错误: 需要class, interface或enum
        String sx=v.get(x),sy=v.get(y);
        ^
0_0_34683369_19902\Main.java:53: 错误: 需要class, interface或enum
        int sumx=0,sumy=0,sumx2=0,sumy2=0,sumxy=0;
        ^
0_0_34683369_19902\Main.java:54: 错误: 需要class, interface或enum
        int len=sx.length();
        ^
0_0_34683369_19902\Main.java:55: 错误: 需要class, interface或enum
        for(int i=0;i<len;i++){
        ^
0_0_34683369_19902\Main.java:55: 错误: 需要class, interface或enum
        for(int i=0;i<len;i++){
                    ^
0_0_34683369_19902\Main.java:55: 错误: 需要class, interface或enum
        for(int i=0;i<len;i++){
                          ^
0_0_34683369_19902\Main.java:57: 错误: 需要class, interface或enum
            sumx2+=(sx.charAt(i)-'0')*(sx.charAt(i)-'0');
            ^
0_0_34683369_19902\Main.java:58: 错误: 需要class, interface或enum
            sumy+=sy.charAt(i)-'0';
            ^
0_0_34683369_19902\Main.java:59: 错误: 需要class, interface或enum
            sumy2+=(sy.charAt(i)-'0')*(sy.charAt(i)-'0');
            ^
0_0_34683369_19902\Main.java:60: 错误: 需要class, interface或enum
            sumxy+=(sx.charAt(i)-'0')*(sy.charAt(i)-'0');
            ^
0_0_34683369_19902\Main.java:61: 错误: 需要class, interface或enum
        }
        ^
0_0_34683369_19902\Main.java:63: 错误: 需要class, interface或enum
        double den=Math.sqrt((sumx2-1.0*sumx*sumx/len)*(sumy2-1.0*sumy*sumy/len));
        ^
0_0_34683369_19902\Main.java:64: 错误: 需要class, interface或enum
        System.out.println(x+","+y+","+num/den);
        ^
0_0_34683369_19902\Main.java:65: 错误: 需要class, interface或enum
        return num/den;
        ^
0_0_34683369_19902\Main.java:66: 错误: 需要class, interface或enum
    }
    ^
0_0_34683369_19902\Main.java:69: 错误: 需要class, interface或enum
        for(int i = 0; i<=n; i++) {
        ^
0_0_34683369_19902\Main.java:69: 错误: 需要class, interface或enum
        for(int i = 0; i<=n; i++) {
                       ^
0_0_34683369_19902\Main.java:69: 错误: 需要class, interface或enum
        for(int i = 0; i<=n; i++) {
                             ^
0_0_34683369_19902\Main.java:71: 错误: 需要class, interface或enum
            slack[i]= MAX;
            ^
0_0_34683369_19902\Main.java:72: 错误: 需要class, interface或enum
        }
        ^
0_0_34683369_19902\Main.java:74: 错误: 需要class, interface或enum
        int u,v=0;
        ^
0_0_34683369_19902\Main.java:75: 错误: 需要class, interface或enum
        for(u=n;left[u]!=-1;u=v){
        ^
0_0_34683369_19902\Main.java:75: 错误: 需要class, interface或enum
        for(u=n;left[u]!=-1;u=v){
                ^
0_0_34683369_19902\Main.java:75: 错误: 需要class, interface或enum
        for(u=n;left[u]!=-1;u=v){
                            ^
0_0_34683369_19902\Main.java:77: 错误: 需要class, interface或enum
            double d= MAX;
            ^
0_0_34683369_19902\Main.java:78: 错误: 需要class, interface或enum
            for(int i=0;i<n;i++){
            ^
0_0_34683369_19902\Main.java:78: 错误: 需要class, interface或enum
            for(int i=0;i<n;i++){
                        ^
0_0_34683369_19902\Main.java:78: 错误: 需要class, interface或enum
            for(int i=0;i<n;i++){
                            ^
0_0_34683369_19902\Main.java:81: 错误: 需要class, interface或enum
                    if(tmp<slack[i]){
                    ^
0_0_34683369_19902\Main.java:83: 错误: 需要class, interface或enum
                        pre[i]=u;
                        ^
0_0_34683369_19902\Main.java:84: 错误: 需要class, interface或enum
                    }
                    ^
0_0_34683369_19902\Main.java:87: 错误: 需要class, interface或enum
                    }
                    ^
0_0_34683369_19902\Main.java:90: 错误: 需要class, interface或enum
            for(int i=0;i<=n;i++) {
                        ^
0_0_34683369_19902\Main.java:90: 错误: 需要class, interface或enum
            for(int i=0;i<=n;i++) {
                             ^
0_0_34683369_19902\Main.java:93: 错误: 需要class, interface或enum
                    ly[i] += d;
                    ^
0_0_34683369_19902\M


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-22 13:26:48, Gzip enabled