0_0_38024500_11104.cpp: In function 'void puup(int, int, int)':
0_0_38024500_11104.cpp:5:2: error: 'sum' was not declared in this scope
sum[x]=Sum[x]=0;
^
0_0_38024500_11104.cpp:5:9: error: 'Sum' was not declared in this scope
sum[x]=Sum[x]=0;
^
0_0_38024500_11104.cpp:7:13: error: 's' was not declared in this scope
if(l==mid&&s[l]=='0');
^
0_0_38024500_11104.cpp:9:15: error: 's' was not declared in this scope
if(r==mid+1&&s[r]=='0');
^
0_0_38024500_11104.cpp:10:35: error: 'mod' was not declared in this scope
else sum[x]=(sum[x]+sum[x<<1|1])%mod,Sum[x]=(Sum[x]+Sum[x<<1|1])%mod;
^
0_0_38024500_11104.cpp: In function 'void build(int, int, int)':
0_0_38024500_11104.cpp:13:2: error: 'tag' was not declared in this scope
tag[x]=Tag[x]=1;
^
0_0_38024500_11104.cpp:13:9: error: 'Tag' was not declared in this scope
tag[x]=Tag[x]=1;
^
0_0_38024500_11104.cpp:15:8: error: 'd' was not declared in this scope
if(l+d<=md)sum[x]=Sum[x]=0;
^
0_0_38024500_11104.cpp:15:11: error: 'md' was not declared in this scope
if(l+d<=md)sum[x]=Sum[x]=0;
^
0_0_38024500_11104.cpp:15:14: error: 'sum' was not declared in this scope
if(l+d<=md)sum[x]=Sum[x]=0;
^
0_0_38024500_11104.cpp:15:21: error: 'Sum' was not declared in this scope
if(l+d<=md)sum[x]=Sum[x]=0;
^
0_0_38024500_11104.cpp:17:4: error: 'sum' was not declared in this scope
sum[x]=Pow(2,cnt[L-1]);
^
0_0_38024500_11104.cpp:17:17: error: 'cnt' was not declared in this scope
sum[x]=Pow(2,cnt[L-1]);
^
0_0_38024500_11104.cpp:17:21: error: 'L' was not declared in this scope
sum[x]=Pow(2,cnt[L-1]);
^
0_0_38024500_11104.cpp:17:25: error: 'Pow' was not declared in this scope
sum[x]=Pow(2,cnt[L-1]);
^
0_0_38024500_11104.cpp:19:4: error: 'Sum' was not declared in this scope
Sum[x]=Pow(2,cnt[L-1]-rec);
^
0_0_38024500_11104.cpp: In function 'int ask(int, int, int, int, int)':
0_0_38024500_11104.cpp:29:6: error: 'd' was not declared in this scope
if(d+r<locr||locr>n){
^
0_0_38024500_11104.cpp:29:10: error: 'locr' was not declared in this scope
if(d+r<locr||locr>n){
^
0_0_38024500_11104.cpp:29:21: error: 'n' was not declared in this scope
if(d+r<locr||locr>n){
^
0_0_38024500_11104.cpp:30:13: error: 's' was not declared in this scope
if(l==r&&s[l]=='0')return 0;
^
0_0_38024500_11104.cpp:31:12: error: 'sum' was not declared in this scope
return (sum[x]-Sum[x]+mod)%mod;
^
0_0_38024500_11104.cpp:31:19: error: 'Sum' was not declared in this scope
return (sum[x]-Sum[x]+mod)%mod;
^
0_0_38024500_11104.cpp:31:26: error: 'mod' was not declared in this scope
return (sum[x]-Sum[x]+mod)%mod;
^
0_0_38024500_11104.cpp:32:31: error: 's' was not declared in this scope
if(d+l>=locr)return (l==r&&s[l]=='0')?0:sum[x];
^
0_0_38024500_11104.cpp:33:10: error: 'pudo' was not declared in this scope
pudo(x);
^
0_0_38024500_11104.cpp:34:23: error: 'mid' was not declared in this scope
return (ask(x<<1,l,mid,L,R)+ask(x<<1|1,mid+1,r,L,R))%mod;
^
0_0_38024500_11104.cpp: In function 'int calc()':
0_0_38024500_11104.cpp:39:5: error: 'n' was not declared in this scope
if(n==1)retunr (s[md]!='0');
^
0_0_38024500_11104.cpp:39:18: error: 's' was not declared in this scope
if(n==1)retunr (s[md]!='0');
^
0_0_38024500_11104.cpp:39:20: error: 'md' was not declared in this scope
if(n==1)retunr (s[md]!='0');
^
0_0_38024500_11104.cpp:39:28: error: 'retunr' was not declared in this scope
if(n==1)retunr (s[md]!='0');
^
0_0_38024500_11104.cpp:40:5: error: 's' was not declared in this scope
if(s[md]=='1')return Pow(2,tot);
^
0_0_38024500_11104.cpp:40:7: error: 'md' was not declared in this scope
if(s[md]=='1')return Pow(2,tot);
^
0_0_38024500_11104.cpp:40:29: error: 'tot' was not declared in this scope
if(s[md]=='1')return Pow(2,tot);
^
0_0_38024500_11104.cpp:40:32: error: 'Pow' was not declared in this scope
if(s[md]=='1')return Pow(2,tot);
^
0_0_38024500_11104.cpp:41:16: error: 'totr' was not declared in this scope
int rec=Pow(2,totr)*T.ask(1,1,m,lcol,m)%mod;
^
0_0_38024500_11104.cpp:41:20: error: 'Pow' was not declared in this scope
int rec=Pow(2,totr)*T.ask(1,1,m,lcol,m)%mod;
^
0_0_38024500_11104.cpp:41:22: error: 'T' was not declared in this scope
int rec=Pow(2,totr)*T.ask(1,1,m,lcol,m)%mod;
^
0_0_38024500_11104.cpp:41:32: error: 'm' was not declared in this scope
int rec=Pow(2,totr)*T.ask(1,1,m,lcol,m)%mod;
^
0_0_38024500_11104.cpp:41:34: error: 'lcol' was not declared in this scope
int rec=Pow(2,totr)*T.ask(1,1,m,lcol,m)%mod;
^
0_0_38024500_11104.cpp:41:42: error: 'mod' was not declared in this scope
int rec=Pow(2,totr)*T.ask(1,1,m,lcol,m)%mod;
^
0_0_38024500_11104.cpp:42:5: error: 's' was not declared in this scope
if(s[md]=='?')return (rec+Pow(2,tot-1))%mod;
^
0_0_38024500_11104.cpp:42:7: error: 'md' was not declared in this scope
if(s[md]=='?')return (rec+Pow(2,tot-1))%mod;
^
0_0_38024500_11104.cpp:42:34: error: 'tot' was not declared in this scope
if(s[md]=='?')return (rec+Pow(2,tot-1))%mod;
^
0_0_38024500_11104.cpp: In function 'int main()':
0_0_38024500_11104.cpp:47:2: error: 'inv' was not declared in this scope
inv=Pow(2,mod-2);
^
0_0_38024500_11104.cpp:47:12: error: 'mod' was not declared in this scope
inv=Pow(2,mod-2);
^
0_0_38024500_11104.cpp:47:17: error: 'Pow' was not declared in this scope
inv=Pow(2,mod-2);
^
0_0_38024500_11104.cpp:49:21: error: 'n' was not declared in this scope
scanf("%lld%lld",&n,&q);
^
0_0_38024500_11104.cpp:49:24: error: 'q' was not declared in this scope
scanf("%lld%lld",&n,&q);
^
0_0_38024500_11104.cpp:50:3: error: 'locl' was not declared in this scope
locl=1;locr=n+1;tot=0;totr=0;
^
0_0_38024500_11104.cpp:50:10: error: 'locr' was not declared in this scope
locl=1;locr=n+1;tot=0;totr=0;
^
0_0_38024500_11104.cpp:50:19: error: 'tot' was not declared in this scope
locl=1;locr=n+1;tot=0;totr=0;
^
0_0_38024500_11104.cpp:50:25: error: 'totr' was not declared in this scope
locl=1;locr=n+1;tot=0;totr=0;
^
0_0_38024500_11104.cpp:51:3: error: 'lc' was not declared in this scope
lc.clear();rc.clear();m=n>>1;
^
0_0_38024500_11104.cpp:51:14: error: 'rc' was not declared in this scope
lc.clear();rc.clear();m=n>>1;
^
0_0_38024500_11104.cpp:51:25: error: 'm' was not declared in this scope
lc.clear();rc.clear();m=n>>1;
^
0_0_38024500_11104.cpp:52:14: error: 's' was not declared in this scope
scanf("%s",s+1);d=(n-1)>>1;md=(n+1)>>1;
^
0_0_38024500_11104.cpp:52:19: error: 'd' was not declared in this scope
scanf("%s",s+1);d=(n-1)>>1;md=(n+1)>>1;
^
0_0_38024500_11104.cpp:52:30: error: 'md' was not declared in this scope
scanf("%s",s+1);d=(n-1)>>1;md=(n+1)>>1;
^
0_0_38024500_11104.cpp:53:24: error: 'cnt' was not declared in this scope
for(int i=1;i<=n;i++)cnt[i]=0;
^
0_0_38024500_11104.cpp:58:23: error: 'cnt' was not declared in this scope
}else if(s[i]=='?')cnt[i]++,tot++,totr+=(i>md);
^
0_0_38024500_11104.cpp:59:24: error: 'cnt' was not declared in this scope
for(int i=1;i<=n;i++)cnt[i]+=cnt[i-1];
^
0_0_38024500_11104.cpp:60:12: error: request for member 'build' in 'T', which is of non-class type 'int'
if(n>1)T.build(1,1,m);
^
|