Main.java:1: error: class, interface, or enum expected
void update (int id, int val) {
^
Main.java:1: error: class, interface, or enum expected
void update (int id, int val) {
^
Main.java:3: error: class, interface, or enum expected
a[id] = val;
^
Main.java:4: error: class, interface, or enum expected
for (; id <= n; id = (id | (id + 1)))
^
Main.java:4: error: class, interface, or enum expected
for (; id <= n; id = (id | (id + 1)))
^
Main.java:4: error: class, interface, or enum expected
for (; id <= n; id = (id | (id + 1)))
^
Main.java:6: error: class, interface, or enum expected
}
^
7 errors