0_0_31583914_3629.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_31583914_3629.cpp:4:13: error: expected ':' before 'int'
private int x;
^
0_0_31583914_3629.cpp:5:13: error: expected ':' before 'int'
private int y;
^
0_0_31583914_3629.cpp:7:12: error: expected ':' before 'Point'
public Point(int x, int y) {
^
0_0_31583914_3629.cpp:12:12: error: expected ':' before 'int'
public int getX() {
^
0_0_31583914_3629.cpp:16:12: error: expected ':' before 'int'
public int getY() {
^
0_0_31583914_3629.cpp:20:1: error: expected ';' after class definition
}
^
0_0_31583914_3629.cpp: In constructor 'Point::Point(int, int)':
0_0_31583914_3629.cpp:8:14: error: request for member 'x' in '(Point*)this', which is of pointer type 'Point*' (maybe you meant to use '->' ?)
this.x = x;
^
0_0_31583914_3629.cpp:9:14: error: request for member 'y' in '(Point*)this', which is of pointer type 'Point*' (maybe you meant to use '->' ?)
this.y = y;
^
0_0_31583914_3629.cpp: At global scope:
0_0_31583914_3629.cpp:22:1: error: expected unqualified-id before 'public'
public class Main {
^
|