0_0_24232154_3450.cpp:10:1: error: expected initializer before 'int'
int f[S],sum[S];
^
0_0_24232154_3450.cpp: In function 'void init()':
0_0_24232154_3450.cpp:13:13: error: 'str' was not declared in this scope
scanf("%s",str+1);
^
0_0_24232154_3450.cpp:15:28: error: 'sum' was not declared in this scope
for (int i=0;i<1<<20;++i) sum[i]=0;
^
0_0_24232154_3450.cpp:16:2: error: 'sum' was not declared in this scope
sum[0]=1;
^
0_0_24232154_3450.cpp: In function 'void solve()':
0_0_24232154_3450.cpp:32:15: error: 'str' was not declared in this scope
scanf("%s",str),
^
0_0_24232154_3450.cpp:37:4: error: 'f' was not declared in this scope
f[x]=sum[x];
^
0_0_24232154_3450.cpp:37:9: error: 'sum' was not declared in this scope
f[x]=sum[x];
^
|