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_27132566_27009.cpp:1:1: error: 'import' does not name a type
 import java.util.*;
 ^
0_0_27132566_27009.cpp:2:1: error: 'import' does not name a type
 import java.math.*;
 ^
0_0_27132566_27009.cpp:5:5: error: expected unqualified-id before '[' token
  int[] s=new int[4];
     ^
0_0_27132566_27009.cpp:6:5: error: expected unqualified-id before '[' token
  int[] p=new int[4];
     ^
0_0_27132566_27009.cpp:15:1: error: expected ';' after class definition
 }
 ^
0_0_27132566_27009.cpp: In constructor 'Ingredient::Ingredient(int, int, int, int, int, int)':
0_0_27132566_27009.cpp:8:8: error: request for member 'x' in '(Ingredient*)this', which is of pointer type 'Ingredient*' (maybe you meant to use '->' ?)
   this.x=x;
        ^
0_0_27132566_27009.cpp:9:8: error: request for member 'y' in '(Ingredient*)this', which is of pointer type 'Ingredient*' (maybe you meant to use '->' ?)
   this.y=y;
        ^
0_0_27132566_27009.cpp:10:8: error: request for member 's' in '(Ingredient*)this', which is of pointer type 'Ingredient*' (maybe you meant to use '->' ?)
   this.s[1]=s1;
        ^
0_0_27132566_27009.cpp:11:8: error: request for member 'p' in '(Ingredient*)this', which is of pointer type 'Ingredient*' (maybe you meant to use '->' ?)
   this.p[1]=p1;
        ^
0_0_27132566_27009.cpp:12:8: error: request for member 's' in '(Ingredient*)this', which is of pointer type 'Ingredient*' (maybe you meant to use '->' ?)
   this.s[2]=s2;
        ^
0_0_27132566_27009.cpp:13:8: error: request for member 'p' in '(Ingredient*)this', which is of pointer type 'Ingredient*' (maybe you meant to use '->' ?)
   this.p[2]=p2;
        ^
0_0_27132566_27009.cpp: At global scope:
0_0_27132566_27009.cpp:16: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-11-26 09:52:58, Gzip enabled