sure.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
sure.java:1: error: class, interface, or enum expected
#include <bits/stdc++.h>
^
sure.java:2: error: illegal character: '#'
#define ll long long
^
sure.java:3: error: illegal character: '#'
#define ld long double
^
sure.java:4: error: illegal character: '#'
#define pb push_back
^
sure.java:5: error: illegal character: '#'
#define task "tests"
^
sure.java:6: error: illegal character: '#'
#define pll pair<ll, ll>
^
sure.java:7: error: illegal character: '#'
#define pi pair<ll, pll>
^
sure.java:8: error: illegal character: '#'
#define fi first
^
sure.java:9: error: illegal character: '#'
#define se second
^
sure.java:12: error: class, interface, or enum expected
const ll mod = 1000000000;
^
sure.java:13: error: class, interface, or enum expected
const ll N = 1e5+55;
^
sure.java:14: error: class, interface, or enum expected
const int base = 313;
^
sure.java:15: error: class, interface, or enum expected
ll n, m, t, k, T, ans, q, tong;
^
sure.java:16: error: class, interface, or enum expected
ll a[N], b[N], d[N];
^
sure.java:17: error: class, interface, or enum expected
vector<ll> adj[N], kq;
^
sure.java:18: error: class, interface, or enum expected
ll pw(ll k, ll n)
^
sure.java:21: error: class, interface, or enum expected
for(; n; n >>= 1)
^
sure.java:21: error: class, interface, or enum expected
for(; n; n >>= 1)
^
sure.java:21: error: class, interface, or enum expected
for(; n; n >>= 1)
^
sure.java:24: error: class, interface, or enum expected
k = k * k % mod;
^
sure.java:25: error: class, interface, or enum expected
}
^
sure.java:27: error: class, interface, or enum expected
}
^
sure.java:32: error: class, interface, or enum expected
}
^
sure.java:36: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)
^
sure.java:36: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)
^
sure.java:36: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)
^
sure.java:39: error: class, interface, or enum expected
ll j = min(n, (total - x) / mod);
^
sure.java:40: error: class, interface, or enum expected
if(j < 0)continue;
^
sure.java:41: error: class, interface, or enum expected
if(d[j] - mod * i >= x)return true;
^
sure.java:42: error: class, interface, or enum expected
}
^
sure.java:44: error: class, interface, or enum expected
}
^
sure.java:48: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)
^
sure.java:48: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)
^
sure.java:48: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)
^
sure.java:51: error: class, interface, or enum expected
cin >> x;
^
sure.java:52: error: class, interface, or enum expected
a[i] = mod * x;
^
sure.java:53: error: class, interface, or enum expected
cin >> x;
^
sure.java:54: error: class, interface, or enum expected
b[i] = mod * x;
^
sure.java:55: error: class, interface, or enum expected
}
^
sure.java:57: error: class, interface, or enum expected
sort(b+1, b+1+n, cmp);
^
sure.java:58: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)d[i] = max(d[i-1], d[i-1] + a[i] - mod);
^
sure.java:58: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)d[i] = max(d[i-1], d[i-1] + a[i] - mod);
^
sure.java:58: error: class, interface, or enum expected
for(int i = 1; i <= n; i ++)d[i] = max(d[i-1], d[i-1] + a[i] - mod);
^
sure.java:59: error: class, interface, or enum expected
ll lf = 0, rt = mod * mod, mid;
^
sure.java:61: error: class, interface, or enum expected
while(lf <= rt)
^
sure.java:64: error: class, interface, or enum expected
if(check(mid))lf = mid+1;
^
sure.java:65: error: class, interface, or enum expected
else rt = mid - 1;
^
sure.java:66: error: class, interface, or enum expected
}
^
sure.java:68: error: class, interface, or enum expected
}
^
sure.java:74: error: class, interface, or enum expected
freopen(task".out", "w", stdout);
^
sure.java:75: error: class, interface, or enum expected
}
^
sure.java:77: error: class, interface, or enum expected
cin.tie(0);
^
sure.java:78: error: class, interface, or enum expected
cout.tie(0);
^
sure.java:79: error: class, interface, or enum expected
int ntest = 1;
^
sure.java:81: error: class, interface, or enum expected
while(ntest -- > 0)
^
sure.java:83: error: class, interface, or enum expected
}
^
57 errors