# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
917031 | 2024-01-27 03:30:08 | firewater | Election Campaign (JOI15_election_campaign) | C++14 | Compilation error | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include<bits/stdc++.h>
#define fs first
#define sn second
#define mp make_pair
#define N 100100
using namespace std;
ll n,m,ans,x,y,z,w,tot,h[N],f[N],sz[N],hs[N],top[N],fa[N],dep[N],dfn[N],low[N],v[N];
vector<pair<pair<ll,ll>,ll> >d[N];
struct rec
{
ll to,nx;
}e[N<<1];
void addl(ll x,ll y)
{
e[++tot].to=y;
e[tot].nx=h[x];
h[x]=tot;
return;
}
struct Tree
{
#define ls x*2
#define rs x*2+1
ll s[N<<2];
void push_up(ll x)
{
s[x]=s[ls]+s[rs];
return;
}
void change(ll x,ll l,ll r,ll y,ll z)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Compilation message (stderr)
election_campaign.cpp:7:1: error: 'll' does not name a type; did you mean 'ls'? 7 | ll n,m,ans,x,y,z,w,tot,h[N],f[N],sz[N],hs[N],top[N],fa[N],dep[N],dfn[N],low[N],v[N]; | ^~ | ls election_campaign.cpp:8:18: error: 'll' was not declared in this scope; did you mean 'ls'? 8 | vector<pair<pair<ll,ll>,ll> >d[N]; | ^~ | ls election_campaign.cpp:8:21: error: 'll' was not declared in this scope; did you mean 'ls'? 8 | vector<pair<pair<ll,ll>,ll> >d[N]; | ^~ | ls election_campaign.cpp:8:23: error: template argument 1 is invalid 8 | vector<pair<pair<ll,ll>,ll> >d[N]; | ^ election_campaign.cpp:8:23: error: template argument 2 is invalid election_campaign.cpp:8:25: error: 'll' was not declared in this scope; did you mean 'ls'? 8 | vector<pair<pair<ll,ll>,ll> >d[N]; | ^~ | ls election_campaign.cpp:8:27: error: template argument 1 is invalid 8 | vector<pair<pair<ll,ll>,ll> >d[N]; | ^ election_campaign.cpp:8:27: error: template argument 2 is invalid election_campaign.cpp:8:29: error: template argument 1 is invalid 8 | vector<pair<pair<ll,ll>,ll> >d[N]; | ^ election_campaign.cpp:8:29: error: template argument 2 is invalid election_campaign.cpp:11:2: error: 'll' does not name a type; did you mean 'ls'? 11 | ll to,nx; | ^~ | ls election_campaign.cpp:13:6: error: variable or field 'addl' declared void 13 | void addl(ll x,ll y) | ^~~~ election_campaign.cpp:13:11: error: 'll' was not declared in this scope; did you mean 'ls'? 13 | void addl(ll x,ll y) | ^~ | ls election_campaign.cpp:13:16: error: 'll' was not declared in this scope; did you mean 'ls'? 13 | void addl(ll x,ll y) | ^~ | ls election_campaign.cpp:24:2: error: 'll' does not name a type; did you mean 'ls'? 24 | ll s[N<<2]; | ^~ | ls election_campaign.cpp:25:15: error: 'll' has not been declared 25 | void push_up(ll x) | ^~ election_campaign.cpp:30:14: error: 'll' has not been declared 30 | void change(ll x,ll l,ll r,ll y,ll z) | ^~ election_campaign.cpp:30:19: error: 'll' has not been declared 30 | void change(ll x,ll l,ll r,ll y,ll z) | ^~ election_campaign.cpp:30:24: error: 'll' has not been declared 30 | void change(ll x,ll l,ll r,ll y,ll z) | ^~ election_campaign.cpp:30:29: error: 'll' has not been declared 30 | void change(ll x,ll l,ll r,ll y,ll z) | ^~ election_campaign.cpp:30:34: error: 'll' has not been declared 30 | void change(ll x,ll l,ll r,ll y,ll z) | ^~ election_campaign.cpp:42:2: error: 'll' does not name a type; did you mean 'ls'? 42 | ll ask(ll x,ll L,ll R,ll l,ll r) | ^~ | ls election_campaign.cpp: In member function 'void Tree::push_up(int)': election_campaign.cpp:27:3: error: 's' was not declared in this scope 27 | s[x]=s[ls]+s[rs]; | ^ election_campaign.cpp: In member function 'void Tree::change(int, int, int, int, int)': election_campaign.cpp:33:4: error: 's' was not declared in this scope 33 | s[x]=max(s[x],y); | ^ election_campaign.cpp:36:3: error: 'll' was not declared in this scope; did you mean 'l'? 36 | ll mid=l+r>>1; | ^~ | l election_campaign.cpp:37:23: error: 'mid' was not declared in this scope 37 | if(y<=r)change(ls,l,mid,y,z); | ^~~ election_campaign.cpp:38:18: error: 'mid' was not declared in this scope 38 | else change(rs,mid+1,r,y,z); | ^~~ election_campaign.cpp: At global scope: election_campaign.cpp:51:6: error: variable or field 'dfs' declared void 51 | void dfs(ll x) | ^~~ election_campaign.cpp:51:10: error: 'll' was not declared in this scope; did you mean 'ls'? 51 | void dfs(ll x) | ^~ | ls election_campaign.cpp:65:6: error: variable or field 'dfs1' declared void 65 | void dfs1(ll x,ll anc) | ^~~~ election_campaign.cpp:65:11: error: 'll' was not declared in this scope; did you mean 'ls'? 65 | void dfs1(ll x,ll anc) | ^~ | ls election_campaign.cpp:65:16: error: 'll' was not declared in this scope; did you mean 'ls'? 65 | void dfs1(ll x,ll anc) | ^~ | ls election_campaign.cpp:78:1: error: 'll' does not name a type; did you mean 'ls'? 78 | ll lca(ll x,ll y) | ^~ | ls election_campaign.cpp:86:1: error: 'll' does not name a type; did you mean 'ls'? 86 | ll ask(ll x,ll y) | ^~ | ls election_campaign.cpp:100:10: error: 'll' was not declared in this scope; did you mean 'ls'? 100 | bool cmp(ll x,ll y) | ^~ | ls election_campaign.cpp:100:15: error: 'll' was not declared in this scope; did you mean 'ls'? 100 | bool cmp(ll x,ll y) | ^~ | ls election_campaign.cpp:100:19: error: expression list treated as compound expression in initializer [-fpermissive] 100 | bool cmp(ll x,ll y) | ^ election_campaign.cpp:104:1: error: 'll' does not name a type; did you mean 'ls'? 104 | ll main() | ^~ | ls