tower.java:8: error: class, interface, or enum expected
public Tower {
^
tower.java:12: error: class, interface, or enum expected
int n = io.nextInt(); int d = io.nextInt();
^
tower.java:12: error: class, interface, or enum expected
int n = io.nextInt(); int d = io.nextInt();
^
tower.java:13: error: class, interface, or enum expected
int[] arr = new int[n];
^
tower.java:14: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
tower.java:14: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
tower.java:14: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
tower.java:16: error: class, interface, or enum expected
}
^
tower.java:18: error: class, interface, or enum expected
long ans = 1;
^
tower.java:19: error: class, interface, or enum expected
int end = 0;
^
tower.java:20: error: class, interface, or enum expected
for (int i = 0; i < n-1; i++) {
^
tower.java:20: error: class, interface, or enum expected
for (int i = 0; i < n-1; i++) {
^
tower.java:20: error: class, interface, or enum expected
for (int i = 0; i < n-1; i++) {
^
tower.java:23: error: class, interface, or enum expected
}
^
tower.java:26: error: class, interface, or enum expected
}
^
tower.java:28: error: class, interface, or enum expected
}
^
tower.java:31: error: class, interface, or enum expected
public static void main(String[] args) throws IOException {
^
tower.java:33: error: class, interface, or enum expected
solve(io);
^
tower.java:34: error: class, interface, or enum expected
io.close();
^
tower.java:35: error: class, interface, or enum expected
}
^
tower.java:65: error: class, interface, or enum expected
}
^
21 errors