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_22183764_29072.cpp:1:1: error: 'package' does not name a type
 package zhu;
 ^
0_0_22183764_29072.cpp:3:1: error: 'import' does not name a type
 import java.math.*;
 ^
0_0_22183764_29072.cpp:4:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_22183764_29072.cpp:8:9: error: expected ':' before 'static'
  public static void main(String[] args) 
         ^
0_0_22183764_29072.cpp:8:26: error: 'String' has not been declared
  public static void main(String[] args) 
                          ^
0_0_22183764_29072.cpp:8:35: error: expected ',' or '...' before 'args'
  public static void main(String[] args) 
                                   ^
0_0_22183764_29072.cpp:96:1: error: expected ';' after class definition
 }
 ^
0_0_22183764_29072.cpp: In static member function 'static void Zhu::main(int*)':
0_0_22183764_29072.cpp:12:3: error: 'Scanner' was not declared in this scope
   Scanner in=new Scanner(System.in);
   ^
0_0_22183764_29072.cpp:13:5: error: 'in' was not declared in this scope
   T=in.nextInt();
     ^
0_0_22183764_29072.cpp:15:3: error: 'BigDecimal' was not declared in this scope
   BigDecimal a=new BigDecimal("0");
   ^
0_0_22183764_29072.cpp:16:14: error: expected ';' before 'b'
   BigDecimal b=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:17:14: error: expected ';' before 'c'
   BigDecimal c=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:18:14: error: expected ';' before 'd'
   BigDecimal d=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:20:14: error: expected ';' before 'e'
   BigDecimal e=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:21:14: error: expected ';' before 'f'
   BigDecimal f=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:22:14: error: expected ';' before 'two'
   BigDecimal two=new BigDecimal("2.0");
              ^
0_0_22183764_29072.cpp:26:14: error: expected ';' before 'g'
   BigDecimal g=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:28:14: error: expected ';' before 'D0'
   BigDecimal D0=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:29:14: error: expected ';' before 'D1'
   BigDecimal D1=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:30:14: error: expected ';' before 'D2'
   BigDecimal D2=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:31:14: error: expected ';' before 'D3'
   BigDecimal D3=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:32:14: error: expected ';' before 'D4'
   BigDecimal D4=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:33:14: error: expected ';' before 'D5'
   BigDecimal D5=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:34:14: error: expected ';' before 'D6'
   BigDecimal D6=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:35:14: error: expected ';' before 'D7'
   BigDecimal D7=new BigDecimal("0");
              ^
0_0_22183764_29072.cpp:39:4: error: 'D0' was not declared in this scope
    D0=in.nextBigDecimal();
    ^
0_0_22183764_29072.cpp:40:4: error: 'D1' was not declared in this scope
    D1=in.nextBigDecimal();
    ^
0_0_22183764_29072.cpp:41:4: error: 'D2' was not declared in this scope
    D2=in.nextBigDecimal();
    ^
0_0_22183764_29072.cpp:42:4: error: 'D3' was not declared in this scope
    D3=in.nextBigDecimal();
    ^
0_0_22183764_29072.cpp:43:4: error: 'D4' was not declared in this scope
    D4=in.nextBigDecimal();
    ^
0_0_22183764_29072.cpp:44:4: error: 'D5' was not declared in this scope
    D5=in.nextBigDecimal();
    ^
0_0_22183764_29072.cpp:45:4: error: 'D6' was not declared in this scope
    D6=in.nextBigDecimal();
    ^
0_0_22183764_29072.cpp:46:4: error: 'D7' was not declared in this scope
    D7=in.nextBigDecimal();
    ^
0_0_22183764_29072.cpp:51:4: error: 'a' was not declared in this scope
    a=D0.subtract(D2);
    ^
0_0_22183764_29072.cpp:52:4: error: 'b' was not declared in this scope
    b=D1.subtract(D3);
    ^
0_0_22183764_29072.cpp:56:4: error: 'c' was not declared in this scope
    c=D0.subtract(D4);
    ^
0_0_22183764_29072.cpp:57:4: error: 'd' was not declared in this scope
    d=D1.subtract(D5);
    ^
0_0_22183764_29072.cpp:60:10: error: 'e' was not declared in this scope
          e=D0.multiply(D0).subtract(D2.multiply(D2)).subtract(D3.multiply(D3).subtract(D1.multiply(D1)));
          ^
0_0_22183764_29072.cpp:61:21: error: 'two' was not declared in this scope
          e=e.divide(two);
                     ^
0_0_22183764_29072.cpp:64:10: error: 'f' was not declared in this scope
          f=D0.multiply(D0).subtract(D4.multiply(D4)).subtract(D5.multiply(D5).subtract(D1.multiply(D1))).divide(two);
          ^
0_0_22183764_29072.cpp:67:21: error: expected ';' before 'xx'
          BigDecimal xx=b.multiply(c).subtract(a.multiply(d));
                     ^
0_0_22183764_29072.cpp:71:21: error: expected ';' before 'x0'
          BigDecimal x0=b.multiply(f).subtract(d.multiply(e)).divide(xx);
                     ^
0_0_22183764_29072.cpp:72:21: error: expected ';' before 'y0'
          BigDecimal y0=a.multiply(f).subtract(c.multiply(e)).divide(xx);
                     ^
0_0_22183764_29072.cpp:75:21: error: expected ';' before 'temp1'
          BigDecimal temp1=D1.subtract(y0).multiply(D1.subtract(y0));
                     ^
0_0_22183764_29072.cpp:76:21: error: expected ';' before 'R'
          BigDecimal R=D0.subtract(x0).multiply(D0.subtract(x0)).add(temp1);
                     ^
0_0_22183764_29072.cpp:79:21: error: expected ';' before 'temp2'
          BigDecimal temp2=D7.subtract(y0).multiply(D7.subtract(y0));
                     ^
0_0_22183764_29072.cpp:80:21: error: expected ';' before 'RR'
          BigDecimal RR=D6.subtract(x0).multiply(D6.subtract(x0)).add(temp2);
                     ^
0_0_22183764_29072.cpp:81:13: error: 'RR' was not declared in this scope
          if(RR.compareTo(R)==1)
             ^
0_0_22183764_29072.cpp:81:26: error: 'R' was not declared in this scope
          if(RR.compareTo(R)==1)
                          ^
0_0_22183764_29072.cpp:84:11: error: 'System' was not declared in this scope
           System.out.println("Accepted");
           ^
0_0_22183764_29072.cpp:88:11: error: 'System' was not declared in this scope
           System.out.println("Rejected");
           ^


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-27 04:42:54, Gzip enabled