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{
^
|