0_0_20607563_6935.cpp:5:1: error: 'bitset' does not name a type
bitset<MAX_N> bs[10], dp[2];
^
0_0_20607563_6935.cpp: In function 'void solve()':
0_0_20607563_6935.cpp:7:22: error: 'strlen' was not declared in this scope
len = strlen(str + 1);
^
0_0_20607563_6935.cpp:8:2: error: 'dp' was not declared in this scope
dp[0].reset(), dp[1].reset();
^
0_0_20607563_6935.cpp:13:34: error: 'bs' was not declared in this scope
dp[now] = (dp[now ^ 1] << 1) & bs[str[i] - '0'];
^
0_0_20607563_6935.cpp:18:36: error: 'printf' was not declared in this scope
printf("%s\n", str + (i - n + 1));
^
0_0_20607563_6935.cpp: In function 'int main()':
0_0_20607563_6935.cpp:24:24: error: 'scanf' was not declared in this scope
while (~scanf("%d", &n)) {
^
0_0_20607563_6935.cpp:25:34: error: 'bs' was not declared in this scope
for (int i = 0; i < 10; ++i) { bs[i].reset(); }
^
0_0_20607563_6935.cpp:31:5: error: 'bs' was not declared in this scope
bs[y][i] = 1;
^
|