unija.java:4: error: illegal character: '#'
#include <bits/stdc++.h>
^
unija.java:4: error: class, interface, or enum expected
#include <bits/stdc++.h>
^
unija.java:6: error: illegal character: '#'
#ifdef __linux__
^
unija.java:7: error: illegal character: '#'
#include <bits/extc++.h>
^
unija.java:8: error: illegal character: '#'
#define gc() getchar_unlocked()
^
unija.java:9: error: illegal character: '#'
#else
^
unija.java:10: error: illegal character: '#'
#include <ext/rope>
^
unija.java:11: error: illegal character: '#'
#include <ext/pb_ds/assoc_container.hpp>
^
unija.java:12: error: illegal character: '#'
#include <ext/pb_ds/priority_queue.hpp>
^
unija.java:13: error: illegal character: '#'
#include <ext/pb_ds/exception.hpp>
^
unija.java:14: error: illegal character: '#'
#include <ext/pb_ds/hash_policy.hpp>
^
unija.java:15: error: illegal character: '#'
#include <ext/pb_ds/list_update_policy.hpp>
^
unija.java:16: error: illegal character: '#'
#include <ext/pb_ds/tree_policy.hpp>
^
unija.java:17: error: illegal character: '#'
#include <ext/pb_ds/trie_policy.hpp>
^
unija.java:18: error: illegal character: '#'
#define gc() getchar()
^
unija.java:19: error: illegal character: '#'
#endif
^
unija.java:21: error: illegal character: '#'
#define endl "\n"
^
unija.java:25: error: class, interface, or enum expected
template<typename T>
^
unija.java:29: error: class, interface, or enum expected
int f = 0, c = gc();
^
unija.java:30: error: class, interface, or enum expected
for (; !isdigit(c); c = gc())
^
unija.java:30: error: class, interface, or enum expected
for (; !isdigit(c); c = gc())
^
unija.java:30: error: class, interface, or enum expected
for (; !isdigit(c); c = gc())
^
unija.java:32: error: class, interface, or enum expected
for (; isdigit(c); c = gc())
^
unija.java:32: error: class, interface, or enum expected
for (; isdigit(c); c = gc())
^
unija.java:32: error: class, interface, or enum expected
for (; isdigit(c); c = gc())
^
unija.java:34: error: class, interface, or enum expected
return f ? -n : n;
^
unija.java:35: error: class, interface, or enum expected
}
^
unija.java:43: error: class, interface, or enum expected
void Main() {
^
unija.java:45: error: class, interface, or enum expected
cin >> n;
^
unija.java:46: error: class, interface, or enum expected
map<int, int, greater<int>> app;
^
unija.java:47: error: class, interface, or enum expected
for (int i = 1; i <= n; ++i) {
^
unija.java:47: error: class, interface, or enum expected
for (int i = 1; i <= n; ++i) {
^
unija.java:47: error: class, interface, or enum expected
for (int i = 1; i <= n; ++i) {
^
unija.java:49: error: class, interface, or enum expected
cin >> x >> y;
^
unija.java:50: error: class, interface, or enum expected
x >>= 1, y >>= 1;
^
unija.java:51: error: class, interface, or enum expected
app[x] = max(app[x], y);
^
unija.java:52: error: class, interface, or enum expected
}
^
unija.java:54: error: class, interface, or enum expected
long long ans = 0;
^
unija.java:55: error: class, interface, or enum expected
for (auto t : app) {
^
unija.java:57: error: class, interface, or enum expected
int y = t.second;
^
unija.java:58: error: class, interface, or enum expected
ans += 1ll * max(y - lt, 0) * x;
^
unija.java:59: error: class, interface, or enum expected
lt = max(lt, y);
^
unija.java:60: error: class, interface, or enum expected
}
^
unija.java:62: error: class, interface, or enum expected
}
^
unija.java:68: error: class, interface, or enum expected
cin.tie(nullptr), cout.tie(nullptr);
^
unija.java:69: error: class, interface, or enum expected
Main();
^
unija.java:70: error: class, interface, or enum expected
return 0;
^
unija.java:71: error: class, interface, or enum expected
}
^
48 errors