0_0_25561151_19801.cpp:1:1: error: 'import' does not name a type
import java.util.Arrays;
^
0_0_25561151_19801.cpp:2:1: error: 'import' does not name a type
import java.util.Comparator;
^
0_0_25561151_19801.cpp:3:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_25561151_19801.cpp:8:12: error: expected ':' before 'Point'
public Point(int x, int y, int z) {
^
0_0_25561151_19801.cpp:13:1: error: expected ';' after class definition
}
^
0_0_25561151_19801.cpp: In constructor 'Point::Point(int, int, int)':
0_0_25561151_19801.cpp:9: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_25561151_19801.cpp:10: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_25561151_19801.cpp:11:14: error: request for member 'z' in '(Point*)this', which is of pointer type 'Point*' (maybe you meant to use '->' ?)
this.z = z;
^
0_0_25561151_19801.cpp: At global scope:
0_0_25561151_19801.cpp:16:8: error: expected unqualified-id before '[' token
int[] nodes;
^
0_0_25561151_19801.cpp:35:1: error: expected ';' after class definition
}
^
0_0_25561151_19801.cpp: In constructor 'TreeSet::TreeSet(int)':
0_0_25561151_19801.cpp:19:9: error: 'nodes' was not declared in this scope
nodes = new int[n + 1];
^
0_0_25561151_19801.cpp: In member function 'void TreeSet::insert(int, int)':
0_0_25561151_19801.cpp:26:9: error: 'nodes' was not declared in this scope
nodes[x] = y;
^
0_0_25561151_19801.cpp: In member function 'int TreeSet::find(int)':
0_0_25561151_19801.cpp:30:13: error: 'nodes' was not declared in this scope
if (nodes[x] != x) {
^
0_0_25561151_19801.cpp:33:16: error: 'nodes' was not declared in this scope
return nodes[x];
^
0_0_25561151_19801.cpp: At global scope:
0_0_25561151_19801.cpp:37:1: error: expected unqualified-id before 'public'
public class Main {
^
|