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_21844851_23697.cpp:5:37: error: expected ',' or ';' before 'INF'
 const int N = 3010, M = 200000 + 10 INF = 0x3f3f3f3f;
                                     ^
0_0_21844851_23697.cpp: In function 'int findset(int)':
0_0_21844851_23697.cpp:33:17: error: 'fa' was not declared in this scope
     return u == fa[u] ? u : fa[u] = findset(fa[u]);
                 ^
0_0_21844851_23697.cpp: In function 'void merge(int, int)':
0_0_21844851_23697.cpp:41:5: error: 'fa' was not declared in this scope
     fa[v] = u;
     ^
0_0_21844851_23697.cpp: In function 'int MinimumCutPhase(int, int&, int&)':
0_0_21844851_23697.cpp:55:49: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
             for (int p = head[u]; ~p; p = next[p])
                                                 ^
0_0_21844851_23697.cpp:57:33: error: 'to' was not declared in this scope
                 int v = findset(to[p]);
                                 ^
0_0_21844851_23697.cpp:59:55: error: 'weight' was not declared in this scope
                     que.push(std::make_pair(val[v] += weight[p], v));
                                                       ^
0_0_21844851_23697.cpp: In function 'int StoerWagner()':
0_0_21844851_23697.cpp:76:15: error: 'INF' was not declared in this scope
     int res = INF;
               ^
0_0_21844851_23697.cpp: In function 'int main()':
0_0_21844851_23697.cpp:90:14: error: too few arguments to function 'void init(int)'
         init();
              ^
0_0_21844851_23697.cpp:20:6: note: declared here
 void init(int n)
      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 20:39:26, Gzip enabled