0_0_30110254_9292.cpp: In function 'void dfs(int)':
0_0_30110254_9292.cpp:8:11: error: 'tr' was not declared in this scope
int ls = tr[x][0], rs = tr[x][1];
^
0_0_30110254_9292.cpp:11:6: error: 'rs' was not declared in this scope
dfs(rs);
^
0_0_30110254_9292.cpp:13:2: error: 'dep' was not declared in this scope
dep[x] = max(dep[ls], dep[rs]);
^
0_0_30110254_9292.cpp: At global scope:
0_0_30110254_9292.cpp:16:22: error: 'mn' was not declared in this scope
int ncnt = 1, tr[2 * mn * 32][2];
^
0_0_30110254_9292.cpp: In function 'void ins(int, int)':
0_0_30110254_9292.cpp:23:8: error: 'tr' was not declared in this scope
if (!tr[rt][t])
^
0_0_30110254_9292.cpp:25:8: error: 'tr' was not declared in this scope
rt = tr[rt][t];
^
0_0_30110254_9292.cpp:26:16: error: 'suma' was not declared in this scope
if (id == 1) suma[rt]++;
^
0_0_30110254_9292.cpp:27:21: error: 'sumb' was not declared in this scope
else if (id == 2) sumb[rt]++;
^
0_0_30110254_9292.cpp: In function 'int main()':
0_0_30110254_9292.cpp:37:45: error: 'a' was not declared in this scope
for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
^
0_0_30110254_9292.cpp:38:45: error: 'b' was not declared in this scope
for (int i = 1; i <= n; i++) scanf("%d", &b[i]);
^
0_0_30110254_9292.cpp:39:36: error: 'a' was not declared in this scope
for (int i = 1; i <= n; i++) ins(a[i], 1);
^
0_0_30110254_9292.cpp:40:36: error: 'b' was not declared in this scope
for (int i = 1; i <= n; i++) ins(b[i], 2);
^
|