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_5387226_21230\Main.java:1: illegal character: \35
#include <stdio.h>
^
0_0_5387226_21230\Main.java:3: illegal character: \35
#include <string.h>
^
0_0_5387226_21230\Main.java:5: illegal character: \35
#include <stdlib.h>
^
0_0_5387226_21230\Main.java:7: illegal character: \35
#include <math.h>
^
0_0_5387226_21230\Main.java:11: class, interface, or enum expected
double sss(int x,int y)
^
0_0_5387226_21230\Main.java:17: class, interface, or enum expected
    int a=x+y;
    ^
0_0_5387226_21230\Main.java:19: class, interface, or enum expected
    sum+=a*(a-1)*sqrt(2.0)/2;
    ^
0_0_5387226_21230\Main.java:21: class, interface, or enum expected
    for(int i=a;i>0;--i)
    ^
0_0_5387226_21230\Main.java:21: class, interface, or enum expected
    for(int i=a;i>0;--i)
                ^
0_0_5387226_21230\Main.java:21: class, interface, or enum expected
    for(int i=a;i>0;--i)
                    ^
0_0_5387226_21230\Main.java:25: class, interface, or enum expected
    sum+=(a-y)*sqrt(2.0);
    ^
0_0_5387226_21230\Main.java:27: class, interface, or enum expected
    return sum;
    ^
0_0_5387226_21230\Main.java:29: class, interface, or enum expected
}
^
0_0_5387226_21230\Main.java:37: class, interface, or enum expected
    double t;
    ^
0_0_5387226_21230\Main.java:39: class, interface, or enum expected
    scanf("%d",&n);
    ^
0_0_5387226_21230\Main.java:41: class, interface, or enum expected
    while(n--)
    ^
0_0_5387226_21230\Main.java:47: class, interface, or enum expected
        t=fabs(sss(x1,y1)-sss(x2,y2));
        ^
0_0_5387226_21230\Main.java:49: class, interface, or enum expected
        printf("%.3lf\n",t);     
        ^
0_0_5387226_21230\Main.java:51: class, interface, or enum expected
    }
    ^
0_0_5387226_21230\Main.java:57: class, interface, or enum expected
}
^
20 errors


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-04 12:46:09, Gzip enabled