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_32191947_22027.cpp:34:15: error: 'siz' was not declared in this scope
 int Enum, ans[siz];
               ^
0_0_32191947_22027.cpp:39:7: error: 'siz' was not declared in this scope
 }edge[siz], tmp;
       ^
0_0_32191947_22027.cpp:44:7: error: 'siz' was not declared in this scope
 int f[siz];//µã
       ^
0_0_32191947_22027.cpp: In function 'int Find(int)':
0_0_32191947_22027.cpp:46:27: error: 'f' was not declared in this scope
 int Find(int u) { return (f[u] == u) ? u : f[u] = Find(f[u]); }
                           ^
0_0_32191947_22027.cpp: In function 'void kruscal(int)':
0_0_32191947_22027.cpp:51:6: error: 'ii' was not declared in this scope
  per(ii, 1, n)f[i] = i;
      ^
0_0_32191947_22027.cpp:51:14: error: 'per' was not declared in this scope
  per(ii, 1, n)f[i] = i;
              ^
0_0_32191947_22027.cpp:54:13: error: expected primary-expression before '[' token
   tmp = edge[Ecnt++];
             ^
0_0_32191947_22027.cpp:57:14: error: expected primary-expression before '[' token
    tmp = edge[Ecnt++];
              ^
0_0_32191947_22027.cpp:63:4: error: 'f' was not declared in this scope
    f[Find(tmp.b)] = Find(tmp.a);
    ^
0_0_32191947_22027.cpp:68:2: error: 'ans' was not declared in this scope
  ans[Euse] = min(ans[Euse], ret);//
  ^
0_0_32191947_22027.cpp:70:13: error: expected primary-expression before '[' token
   tmp = edge[v.front()]; v.erase(v.begin());
             ^
0_0_32191947_22027.cpp: In function 'int main()':
0_0_32191947_22027.cpp:85:7: error: 'ii' was not declared in this scope
   per(ii, 0, m)ans[ii] = inf;
       ^
0_0_32191947_22027.cpp:85:15: error: 'per' was not declared in this scope
   per(ii, 0, m)ans[ii] = inf;
               ^


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-02-18 17:25:27, Gzip enabled