0_0_28849200_17310.cpp:1:24: error: stray '#' in program
<code class=" hljs go">#include <bits/stdc++.h>
^
0_0_28849200_17310.cpp:1:1: error: expected unqualified-id before '<' token
<code class=" hljs go">#include <bits/stdc++.h>
^
0_0_28849200_17310.cpp:5:1: error: expected unqualified-id before '<' token
<span class="hljs-typename">int n;
^
0_0_28849200_17310.cpp:7:1: error: expected unqualified-id before '<' token
<span class="hljs-typename">int len[N * 2],ans[N];
^
0_0_28849200_17310.cpp:8:1: error: expected unqualified-id before '<' token
<span class="hljs-typename">bool t[N*2][26];
^
0_0_28849200_17310.cpp:10:1: error: expected unqualified-id before '<' token
<span class="hljs-typename">int getMex(<span class="hljs-typename">int x)
^
0_0_28849200_17310.cpp: In function 'void build()':
0_0_28849200_17310.cpp:19:5: error: expected primary-expression before '<' token
<span class="hljs-typename">int mx = 0, pos = 0;
^
0_0_28849200_17310.cpp:19:6: error: 'span' was not declared in this scope
<span class="hljs-typename">int mx = 0, pos = 0;
^
0_0_28849200_17310.cpp:20:10: error: expected primary-expression before '<' token
for (<span class="hljs-typename">int i = 1; i <= n * 2 + 1; i++)
^
0_0_28849200_17310.cpp:20:49: error: 'i' was not declared in this scope
for (<span class="hljs-typename">int i = 1; i <= n * 2 + 1; i++)
^
0_0_28849200_17310.cpp:20:54: error: 'n' was not declared in this scope
for (<span class="hljs-typename">int i = 1; i <= n * 2 + 1; i++)
^
0_0_28849200_17310.cpp:22:17: error: 'mx' was not declared in this scope
if (i > mx && !(i & 1))
^
0_0_28849200_17310.cpp:23:13: error: 'ans' was not declared in this scope
ans[i / 2] = getMex(i);
^
0_0_28849200_17310.cpp:23:34: error: 'getMex' was not declared in this scope
ans[i / 2] = getMex(i);
^
0_0_28849200_17310.cpp:24:17: error: 'len' was not declared in this scope
if (i + len[i] - 1 > mx)
^
0_0_28849200_17310.cpp:24:30: error: 'mx' was not declared in this scope
if (i + len[i] - 1 > mx)
^
0_0_28849200_17310.cpp:26:18: error: expected primary-expression before '<' token
for (<span class="hljs-typename">int j = std::max(mx + 1, i + 1); j <= i + len[i] - 1; j++)
^
0_0_28849200_17310.cpp:26:79: error: 'j' was not declared in this scope
for (<span class="hljs-typename">int j = std::max(mx + 1, i + 1); j <= i + len[i] - 1; j++)
^
0_0_28849200_17310.cpp:28:21: error: 'ans' was not declared in this scope
ans[j / 2] = ans[(i * 2 - j) / 2];
^
0_0_28849200_17310.cpp:30:13: error: 'pos' was not declared in this scope
pos = i;
^
0_0_28849200_17310.cpp:32:17: error: 'len' was not declared in this scope
if (i + len[i] - 1 == mx && i * 2 - mx - 1 > 0)
^
0_0_28849200_17310.cpp:32:31: error: 'mx' was not declared in this scope
if (i + len[i] - 1 == mx && i * 2 - mx - 1 > 0)
^
0_0_28849200_17310.cpp:33:13: error: 't' was not declared in this scope
t[mx + 1][ans[(i * 2 - mx - 1) / 2]] = 1;
^
0_0_28849200_17310.cpp:33:23: error: 'ans' was not declared in this scope
t[mx + 1][ans[(i * 2 - mx - 1) / 2]] = 1;
^
0_0_28849200_17310.cpp: At global scope:
0_0_28849200_17310.cpp:37:1: error: expected unqualified-id before '<' token
<span class="hljs-typename">int main()
^
|