F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 17:55:40, Gzip enabled