rmq.cpp:2:8: error: structured binding declaration cannot have type 'int'
2 | int[] allowedL = new int[N];
| ^~
rmq.cpp:2:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
rmq.cpp:2:8: error: empty structured binding declaration
rmq.cpp:2:11: error: expected initializer before 'allowedL'
2 | int[] allowedL = new int[N];
| ^~~~~~~~
rmq.cpp:3:8: error: structured binding declaration cannot have type 'int'
3 | int[] allowedR = new int[N];
| ^~
rmq.cpp:3:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
rmq.cpp:3:8: error: empty structured binding declaration
rmq.cpp:3:11: error: expected initializer before 'allowedR'
3 | int[] allowedR = new int[N];
| ^~~~~~~~
rmq.cpp:4:5: error: 'Arrays' does not name a type
4 | Arrays.fill(allowedL, 0);
| ^~~~~~
rmq.cpp:5:5: error: 'Arrays' does not name a type
5 | Arrays.fill(allowedR, N - 1);
| ^~~~~~
rmq.cpp:6:5: error: 'boolean' does not name a type; did you mean 'bool'?
6 | boolean[] hasQuery = new boolean[N];
| ^~~~~~~
| bool
rmq.cpp:10:27: error: 'Q' was not declared in this scope
10 | int totalEvents = 2 * Q;
| ^
rmq.cpp:11:5: error: 'Event' does not name a type
11 | Event[] events = new Event[totalEvents];
| ^~~~~
rmq.cpp:15:5: error: expected unqualified-id before 'for'
15 | for (int i = 0; i < Q; i++) {
| ^~~
rmq.cpp:15:25: error: 'Q' was not declared in this scope
15 | for (int i = 0; i < Q; i++) {
| ^
rmq.cpp:15:25: error: 'Q' was not declared in this scope
rmq.cpp:15:25: error: 'Q' was not declared in this scope
rmq.cpp:15:25: error: 'Q' was not declared in this scope
rmq.cpp:15:25: error: 'Q' was not declared in this scope
rmq.cpp:15:25: error: 'Q' was not declared in this scope
rmq.cpp:15:25: error: 'Q' was not declared in this scope
rmq.cpp:15:25: error: 'Q' was not declared in this scope
rmq.cpp:15:25: error: 'Q' was not declared in this scope
rmq.cpp:15:21: error: 'i' does not name a type
15 | for (int i = 0; i < Q; i++) {
| ^
rmq.cpp:15:28: error: 'i' does not name a type
15 | for (int i = 0; i < Q; i++) {
| ^
rmq.cpp:30:5: error: 'Arrays' does not name a type
30 | Arrays.sort(events, 0, eventCount);
| ^~~~~~
rmq.cpp:34:8: error: structured binding declaration cannot have type 'int'
34 | int[] LB = new int[N];
| ^~
rmq.cpp:34:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
rmq.cpp:34:8: error: empty structured binding declaration
rmq.cpp:34:11: error: expected initializer before 'LB'
34 | int[] LB = new int[N];
| ^~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:13: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:22: error: 'Integer' was not declared in this scope
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:35:5: error: 'TreeMap' does not name a type
35 | TreeMap<Integer, Integer> active = new TreeMap<>();
| ^~~~~~~
rmq.cpp:37:5: error: expected unqualified-id before 'for'
37 | for (int i = 0; i < N; i++) {
| ^~~
rmq.cpp:37:25: error: 'N' was not declared in this scope
37 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:37:25: error: 'N' was not declared in this scope
rmq.cpp:37:25: error: 'N' was not declared in this scope
rmq.cpp:37:25: error: 'N' was not declared in this scope
rmq.cpp:37:25: error: 'N' was not declared in this scope
rmq.cpp:37:25: error: 'N' was not declared in this scope
rmq.cpp:37:25: error: 'N' was not declared in this scope
rmq.cpp:37:25: error: 'N' was not declared in this scope
rmq.cpp:37:25: error: 'N' was not declared in this scope
rmq.cpp:37:21: error: 'i' does not name a type
37 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:37:28: error: 'i' does not name a type
37 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
rmq.cpp:53:15: error: 'ArrayList' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:53:25: error: 'Integer' was not declared in this scope
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~
rmq.cpp:53:5: error: 'ArrayList' does not name a type
53 | ArrayList<ArrayList<Integer>> candidates = new ArrayList<>(N);
| ^~~~~~~~~
rmq.cpp:54:5: error: expected unqualified-id before 'for'
54 | for (int v = 0; v < N; v++) {
| ^~~
rmq.cpp:54:25: error: 'N' was not declared in this scope
54 | for (int v = 0; v < N; v++) {
| ^
rmq.cpp:54:25: error: 'N' was not declared in this scope
rmq.cpp:54:25: error: 'N' was not declared in this scope
rmq.cpp:54:25: error: 'N' was not declared in this scope
rmq.cpp:54:25: error: 'N' was not declared in this scope
rmq.cpp:54:25: error: 'N' was not declared in this scope
rmq.cpp:54:25: error: 'N' was not declared in this scope
rmq.cpp:54:25: error: 'N' was not declared in this scope
rmq.cpp:54:25: error: 'N' was not declared in this scope
rmq.cpp:54:21: error: 'v' does not name a type
54 | for (int v = 0; v < N; v++) {
| ^
rmq.cpp:54:28: error: 'v' does not name a type
54 | for (int v = 0; v < N; v++) {
| ^
rmq.cpp:57:5: error: expected unqualified-id before 'for'
57 | for (int i = 0; i < N; i++) {
| ^~~
rmq.cpp:57:25: error: 'N' was not declared in this scope
57 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:57:25: error: 'N' was not declared in this scope
rmq.cpp:57:25: error: 'N' was not declared in this scope
rmq.cpp:57:25: error: 'N' was not declared in this scope
rmq.cpp:57:25: error: 'N' was not declared in this scope
rmq.cpp:57:25: error: 'N' was not declared in this scope
rmq.cpp:57:25: error: 'N' was not declared in this scope
rmq.cpp:57:25: error: 'N' was not declared in this scope
rmq.cpp:57:25: error: 'N' was not declared in this scope
rmq.cpp:57:21: error: 'i' does not name a type
57 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:57:28: error: 'i' does not name a type
57 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:63:8: error: structured binding declaration cannot have type 'int'
63 | int[] designatedPos = new int[N]; // designatedPos[A] holds the position chosen for tag A.
| ^~
rmq.cpp:63:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
rmq.cpp:63:8: error: empty structured binding declaration
rmq.cpp:63:11: error: expected initializer before 'designatedPos'
63 | int[] designatedPos = new int[N]; // designatedPos[A] holds the position chosen for tag A.
| ^~~~~~~~~~~~~
rmq.cpp:64:5: error: 'Arrays' does not name a type
64 | Arrays.fill(designatedPos, -1);
| ^~~~~~
rmq.cpp:65:5: error: 'boolean' does not name a type; did you mean 'bool'?
65 | boolean possible = true;
| ^~~~~~~
| bool
rmq.cpp:66:5: error: expected unqualified-id before 'for'
66 | for (int A = 0; A < N; A++) {
| ^~~
rmq.cpp:66:25: error: 'N' was not declared in this scope
66 | for (int A = 0; A < N; A++) {
| ^
rmq.cpp:66:25: error: 'N' was not declared in this scope
rmq.cpp:66:25: error: 'N' was not declared in this scope
rmq.cpp:66:25: error: 'N' was not declared in this scope
rmq.cpp:66:25: error: 'N' was not declared in this scope
rmq.cpp:66:25: error: 'N' was not declared in this scope
rmq.cpp:66:25: error: 'N' was not declared in this scope
rmq.cpp:66:25: error: 'N' was not declared in this scope
rmq.cpp:66:25: error: 'N' was not declared in this scope
rmq.cpp:66:21: error: 'A' does not name a type
66 | for (int A = 0; A < N; A++) {
| ^
rmq.cpp:66:28: error: 'A' does not name a type
66 | for (int A = 0; A < N; A++) {
| ^
rmq.cpp:80:5: error: expected unqualified-id before 'if'
80 | if (!possible) {
| ^~
rmq.cpp:91:8: error: structured binding declaration cannot have type 'int'
91 | int[] result = new int[N];
| ^~
rmq.cpp:91:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
rmq.cpp:91:8: error: empty structured binding declaration
rmq.cpp:91:11: error: expected initializer before 'result'
91 | int[] result = new int[N];
| ^~~~~~
rmq.cpp:92:5: error: 'Arrays' does not name a type
92 | Arrays.fill(result, -1);
| ^~~~~~
rmq.cpp:93:5: error: 'boolean' does not name a type; did you mean 'bool'?
93 | boolean[] usedTag = new boolean[N];
| ^~~~~~~
| bool
rmq.cpp:94:5: error: expected unqualified-id before 'for'
94 | for (int A = 0; A < N; A++) {
| ^~~
rmq.cpp:94:25: error: 'N' was not declared in this scope
94 | for (int A = 0; A < N; A++) {
| ^
rmq.cpp:94:25: error: 'N' was not declared in this scope
rmq.cpp:94:25: error: 'N' was not declared in this scope
rmq.cpp:94:25: error: 'N' was not declared in this scope
rmq.cpp:94:25: error: 'N' was not declared in this scope
rmq.cpp:94:25: error: 'N' was not declared in this scope
rmq.cpp:94:25: error: 'N' was not declared in this scope
rmq.cpp:94:25: error: 'N' was not declared in this scope
rmq.cpp:94:25: error: 'N' was not declared in this scope
rmq.cpp:94:21: error: 'A' does not name a type
94 | for (int A = 0; A < N; A++) {
| ^
rmq.cpp:94:28: error: 'A' does not name a type
94 | for (int A = 0; A < N; A++) {
| ^
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
104 | TreeSet<Integer> availTag = new TreeSet<>();
| ^~~~~~~
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
rmq.cpp:104:13: error: 'Integer' was not declared in this scope
rmq.cpp:104:5: error: 'TreeSet' does not name a type
104 | TreeSet<Integer> availTag = new TreeSet<>();
| ^~~~~~~
rmq.cpp:105:5: error: expected unqualified-id before 'for'
105 | for (int tag = 0; tag < N; tag++) {
| ^~~
rmq.cpp:105:29: error: 'N' was not declared in this scope
105 | for (int tag = 0; tag < N; tag++) {
| ^
rmq.cpp:105:29: error: 'N' was not declared in this scope
rmq.cpp:105:29: error: 'N' was not declared in this scope
rmq.cpp:105:29: error: 'N' was not declared in this scope
rmq.cpp:105:29: error: 'N' was not declared in this scope
rmq.cpp:105:29: error: 'N' was not declared in this scope
rmq.cpp:105:29: error: 'N' was not declared in this scope
rmq.cpp:105:29: error: 'N' was not declared in this scope
rmq.cpp:105:29: error: 'N' was not declared in this scope
rmq.cpp:105:23: error: 'tag' does not name a type
105 | for (int tag = 0; tag < N; tag++) {
| ^~~
rmq.cpp:105:32: error: 'tag' does not name a type
105 | for (int tag = 0; tag < N; tag++) {
| ^~~
rmq.cpp:108:5: error: expected unqualified-id before 'for'
108 | for (int i = 0; i < N; i++) {
| ^~~
rmq.cpp:108:25: error: 'N' was not declared in this scope
108 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:108:25: error: 'N' was not declared in this scope
rmq.cpp:108:25: error: 'N' was not declared in this scope
rmq.cpp:108:25: error: 'N' was not declared in this scope
rmq.cpp:108:25: error: 'N' was not declared in this scope
rmq.cpp:108:25: error: 'N' was not declared in this scope
rmq.cpp:108:25: error: 'N' was not declared in this scope
rmq.cpp:108:25: error: 'N' was not declared in this scope
rmq.cpp:108:25: error: 'N' was not declared in this scope
rmq.cpp:108:21: error: 'i' does not name a type
108 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:108:28: error: 'i' does not name a type
108 | for (int i = 0; i < N; i++) {
| ^
rmq.cpp:120:5: error: expected unqualified-id before 'if'
120 | if (!possible) {
| ^~
rmq.cpp:126:7: error: expected unqualified-id before 'else'
126 | } else {
| ^~~~
rmq.cpp:134:5: error: 'out' does not name a type
134 | out.close();
| ^~~
rmq.cpp:135:1: error: expected declaration before '}' token
135 | }
| ^
rmq.cpp:138:31: error: expected initializer before 'Comparable'
138 | static class Event implements Comparable<Event> {
| ^~~~~~~~~~