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_30882458_17657.cpp:1:1: error: 'import' does not name a type
 import java.util.Arrays;
 ^
0_0_30882458_17657.cpp:2:1: error: 'import' does not name a type
 import java.util.Comparator;
 ^
0_0_30882458_17657.cpp:3:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_30882458_17657.cpp:8:12: error: expected ':' before 'int'
     public int getX() {
            ^
0_0_30882458_17657.cpp:12:12: error: expected ':' before 'void'
     public void setX(int x) {
            ^
0_0_30882458_17657.cpp:16:12: error: expected ':' before 'int'
     public int getY() {
            ^
0_0_30882458_17657.cpp:20:12: error: expected ':' before 'void'
     public void setY(int y) {
            ^
0_0_30882458_17657.cpp:23:1: error: expected ';' after class definition
 }
 ^
0_0_30882458_17657.cpp: In member function 'void Stu::setX(int)':
0_0_30882458_17657.cpp:13:14: error: request for member 'x' in '(Stu*)this', which is of pointer type 'Stu*' (maybe you meant to use '->' ?)
         this.x = x;
              ^
0_0_30882458_17657.cpp: In member function 'void Stu::setY(int)':
0_0_30882458_17657.cpp:21:14: error: request for member 'y' in '(Stu*)this', which is of pointer type 'Stu*' (maybe you meant to use '->' ?)
         this.y = y;
              ^
0_0_30882458_17657.cpp: At global scope:
0_0_30882458_17657.cpp:26:13: error: expected ':' before 'int'
     private int lx,ly;
             ^
0_0_30882458_17657.cpp:27:13: error: expected ':' before 'int'
     private int rx,ry;
             ^
0_0_30882458_17657.cpp:28:12: error: expected ':' before 'int'
     public int getLx() {
            ^
0_0_30882458_17657.cpp:31:12: error: expected ':' before 'void'
     public void setLx(int lx) {
            ^
0_0_30882458_17657.cpp:34:12: error: expected ':' before 'int'
     public int getLy() {
            ^
0_0_30882458_17657.cpp:37:12: error: expected ':' before 'void'
     public void setLy(int ly) {
            ^
0_0_30882458_17657.cpp:40:12: error: expected ':' before 'int'
     public int getRx() {
            ^
0_0_30882458_17657.cpp:43:12: error: expected ':' before 'void'
     public void setRx(int rx) {
            ^
0_0_30882458_17657.cpp:46:12: error: expected ':' before 'int'
     public int getRy() {
            ^
0_0_30882458_17657.cpp:49:12: error: expected ':' before 'void'
     public void setRy(int ry) {
            ^
0_0_30882458_17657.cpp:52:12: error: expected ':' before 'int'
     public int getCir() {
            ^
0_0_30882458_17657.cpp:55:1: error: expected ';' after class definition
 }
 ^
0_0_30882458_17657.cpp: In member function 'void Re::setLx(int)':
0_0_30882458_17657.cpp:32:14: error: request for member 'lx' in '(Re*)this', which is of pointer type 'Re*' (maybe you meant to use '->' ?)
         this.lx = lx;
              ^
0_0_30882458_17657.cpp: In member function 'void Re::setLy(int)':
0_0_30882458_17657.cpp:38:14: error: request for member 'ly' in '(Re*)this', which is of pointer type 'Re*' (maybe you meant to use '->' ?)
         this.ly = ly;
              ^
0_0_30882458_17657.cpp: In member function 'void Re::setRx(int)':
0_0_30882458_17657.cpp:44:14: error: request for member 'rx' in '(Re*)this', which is of pointer type 'Re*' (maybe you meant to use '->' ?)
         this.rx = rx;
              ^
0_0_30882458_17657.cpp: In member function 'void Re::setRy(int)':
0_0_30882458_17657.cpp:50:14: error: request for member 'ry' in '(Re*)this', which is of pointer type 'Re*' (maybe you meant to use '->' ?)
         this.ry = ry;
              ^
0_0_30882458_17657.cpp: In member function 'int Re::getCir()':
0_0_30882458_17657.cpp:53:20: error: 'Math' was not declared in this scope
         return (2*(Math.abs(lx-rx)+Math.abs(ly-ry)));
                    ^
0_0_30882458_17657.cpp: At global scope:
0_0_30882458_17657.cpp:57:1: error: expected unqualified-id before 'public'
 public class Main {
 ^


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-09-28 11:20:53, Gzip enabled