fireworks.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
fireworks.java:1: error: class, interface, or enum expected
#include <bits/stdc++.h>
^
fireworks.java:5: error: class, interface, or enum expected
typedef long long ll;
^
fireworks.java:7: error: illegal character: '#'
#define pb push_back
^
fireworks.java:7: error: class, interface, or enum expected
#define pb push_back
^
fireworks.java:8: error: illegal character: '#'
#define sz(x) (int)x.size()
^
fireworks.java:9: error: illegal character: '#'
#define all(x) begin(x),end(x)
^
fireworks.java:10: error: illegal character: '#'
#define lb(x,y) lower_bound(all(x),y)-begin(x)
^
fireworks.java:14: error: class, interface, or enum expected
void solve() {
^
fireworks.java:15: error: class, interface, or enum expected
int N, M; cin >> N >> M;
^
fireworks.java:16: error: class, interface, or enum expected
vector<vector<int>> adj(N);
^
fireworks.java:17: error: class, interface, or enum expected
vector<int> len(N + M, 0);
^
fireworks.java:18: error: class, interface, or enum expected
for (int i = 1; i < N + M; i++) {
^
fireworks.java:18: error: class, interface, or enum expected
for (int i = 1; i < N + M; i++) {
^
fireworks.java:18: error: class, interface, or enum expected
for (int i = 1; i < N + M; i++) {
^
fireworks.java:19: error: class, interface, or enum expected
int u; cin >> u; u--;
^
fireworks.java:19: error: class, interface, or enum expected
int u; cin >> u; u--;
^
fireworks.java:20: error: class, interface, or enum expected
adj[u].pb(i);
^
fireworks.java:21: error: class, interface, or enum expected
cin >> len[i];
^
fireworks.java:22: error: class, interface, or enum expected
}
^
fireworks.java:25: error: class, interface, or enum expected
return;
^
fireworks.java:26: error: class, interface, or enum expected
}
^
fireworks.java:28: error: class, interface, or enum expected
for (int i = N; i < N + M; i++) {
^
fireworks.java:28: error: class, interface, or enum expected
for (int i = N; i < N + M; i++) {
^
fireworks.java:28: error: class, interface, or enum expected
for (int i = N; i < N + M; i++) {
^
fireworks.java:30: error: class, interface, or enum expected
}
^
fireworks.java:31: error: class, interface, or enum expected
for (int u = N - 1; u >= 0; u--) {
^
fireworks.java:31: error: class, interface, or enum expected
for (int u = N - 1; u >= 0; u--) {
^
fireworks.java:34: error: class, interface, or enum expected
}
^
fireworks.java:37: error: class, interface, or enum expected
vector<ll> y(N + M);
^
fireworks.java:38: error: class, interface, or enum expected
for (int u = N + M - 1; u >= 0; u--) {
^
fireworks.java:38: error: class, interface, or enum expected
for (int u = N + M - 1; u >= 0; u--) {
^
fireworks.java:38: error: class, interface, or enum expected
for (int u = N + M - 1; u >= 0; u--) {
^
fireworks.java:40: error: class, interface, or enum expected
if (u >= N) {
^
fireworks.java:42: error: class, interface, or enum expected
x[u].pb(0);
^
fireworks.java:43: error: class, interface, or enum expected
y[u] = 0;
^
fireworks.java:44: error: class, interface, or enum expected
} else {
^
fireworks.java:46: error: class, interface, or enum expected
for (int v : adj[u]) {
^
fireworks.java:48: error: class, interface, or enum expected
for (ll n : x[v]) srt.pb(n);
^
fireworks.java:49: error: class, interface, or enum expected
}
^
fireworks.java:51: error: class, interface, or enum expected
x[u].pb(srt[sz(srt) / 2 - 1]);
^
fireworks.java:52: error: class, interface, or enum expected
x[u].pb(srt[sz(srt) / 2]);
^
fireworks.java:53: error: class, interface, or enum expected
y[u] = 0;
^
fireworks.java:54: error: class, interface, or enum expected
for (int v : adj[u]) {
^
fireworks.java:56: error: class, interface, or enum expected
if (x[u][0] <= x[v][0]) {
^
fireworks.java:58: error: class, interface, or enum expected
} else if (x[u][0] <= x[v][1]) {
^
fireworks.java:60: error: class, interface, or enum expected
} else {
^
fireworks.java:62: error: class, interface, or enum expected
}
^
fireworks.java:66: error: class, interface, or enum expected
x[u][1] += len[u];
^
fireworks.java:67: error: class, interface, or enum expected
}
^
fireworks.java:69: error: class, interface, or enum expected
}
^
fireworks.java:73: error: class, interface, or enum expected
cin.tie(nullptr);
^
fireworks.java:74: error: class, interface, or enum expected
rng = mt19937(chrono::steady_clock::now().time_since_epoch().count());
^
fireworks.java:76: error: class, interface, or enum expected
solve();
^
fireworks.java:78: error: class, interface, or enum expected
return 0;
^
fireworks.java:79: error: class, interface, or enum expected
}
^
56 errors