0_0_27490978_6524.cpp: In function 'int main()':
0_0_27490978_6524.cpp:6:14: error: 'cas' was not declared in this scope
scanf("%d",&cas);
^
0_0_27490978_6524.cpp:9:14: error: 'st' was not declared in this scope
scanf("%s",st+1);
^
0_0_27490978_6524.cpp:10:3: error: 'n' was not declared in this scope
n=strlen(st+1);
^
0_0_27490978_6524.cpp:11:8: error: 'i' was not declared in this scope
for (i=1;i<=n;i++)
^
0_0_27490978_6524.cpp:13:4: error: 'cur' was not declared in this scope
cur=0;
^
0_0_27490978_6524.cpp:14:9: error: 'j' was not declared in this scope
for (j=i;j<=n;j++)
^
0_0_27490978_6524.cpp:17:5: error: 'num' was not declared in this scope
num[i][j]=cur;
^
0_0_27490978_6524.cpp:20:8: error: 'i' was not declared in this scope
for (i=0;i<=n+5;i++)
^
0_0_27490978_6524.cpp:21:9: error: 'j' was not declared in this scope
for (j=0;j<=3*n+5;j++)
^
0_0_27490978_6524.cpp:22:10: error: 'k' was not declared in this scope
for (k=0;k<=2;k++)
^
0_0_27490978_6524.cpp:23:11: error: 't' was not declared in this scope
for (t=0;t<=1;t++) f[i][j][k][t]=0;
^
0_0_27490978_6524.cpp:23:25: error: 'f' was not declared in this scope
for (t=0;t<=1;t++) f[i][j][k][t]=0;
^
0_0_27490978_6524.cpp:24:3: error: 'f' was not declared in this scope
f[0][0][0][1]=1;
^
0_0_27490978_6524.cpp:25:8: error: 'i' was not declared in this scope
for (i=0;i<n;i++)
^
0_0_27490978_6524.cpp:26:9: error: 'j' was not declared in this scope
for (j=0;j<=3*n+5;j++)
^
0_0_27490978_6524.cpp:27:10: error: 't' was not declared in this scope
for (t=0;t<=2;t++)
^
0_0_27490978_6524.cpp:28:11: error: 'flag' was not declared in this scope
for (flag=0;flag<=1;flag++)
^
0_0_27490978_6524.cpp:36:16: error: 'ans' was not declared in this scope
f[i+1][ans][t][0]=(2ll*f[i][j][t][flag]+f[i+1][ans][t][0])%mod;
^
0_0_27490978_6524.cpp:39:14: error: 'news' was not declared in this scope
for (news=0;news<=1;news++)
^
0_0_27490978_6524.cpp:42:10: error: 'newf' was not declared in this scope
newf=news<st[i+1]-'0'?0:1;
^
0_0_27490978_6524.cpp:43:18: error: 'ans' was not declared in this scope
(f[i+1][ans][t][newf]+=f[i][j][t][flag])%=mod;
^
0_0_27490978_6524.cpp:50:13: error: 'newx' was not declared in this scope
for (newx=0;newx<=1;newx++)
^
0_0_27490978_6524.cpp:51:14: error: 'newy' was not declared in this scope
for (newy=0;newy<=1;newy++)
^
0_0_27490978_6524.cpp:53:10: error: 'add' was not declared in this scope
add=(newx==1)+(newy==0);
^
0_0_27490978_6524.cpp:56:19: error: 'ans' was not declared in this scope
(f[i+1][ans+add][t][0]+=f[i][j][t][flag])%=mod;
^
0_0_27490978_6524.cpp:60:11: error: 'newf' was not declared in this scope
newf=newx<st[i+1]-'0'?0:1;
^
0_0_27490978_6524.cpp:61:19: error: 'ans' was not declared in this scope
(f[i+1][ans+add][t][newf]+=f[i][j][t][flag])%=mod;
^
0_0_27490978_6524.cpp:70:16: error: 'ans' was not declared in this scope
f[i+1][ans+1][t][0]=(f[i][j][t][flag]+f[i+1][ans+1][t][0])%mod;
^
0_0_27490978_6524.cpp:73:14: error: 'news' was not declared in this scope
for (news=0;news<=1;news++)
^
0_0_27490978_6524.cpp:76:10: error: 'newf' was not declared in this scope
newf=news<st[i+1]-'0'?0:1;
^
0_0_27490978_6524.cpp:77:18: error: 'ans' was not declared in this scope
(f[i+1][ans][t][newf]+=f[i][j][t][flag])%=mod;
^
0_0_27490978_6524.cpp:82:3: error: 'ans' was not declared in this scope
ans=0;
^
0_0_27490978_6524.cpp:83:8: error: 'i' was not declared in this scope
for (i=0;i<=3*n+5;i++)
^
0_0_27490978_6524.cpp:84:9: error: 'j' was not declared in this scope
for (j=0;j<=1;j++)
^
0_0_27490978_6524.cpp:86:5: error: 'cnt1' was not declared in this scope
cnt1=1ll*i*f[n][i][1][j]%mod;
^
0_0_27490978_6524.cpp:87:5: error: 'cnt2' was not declared in this scope
cnt2=1ll*i*f[n][i][2][j]%mod;
^
|