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_20119214_20441.cpp: In function 'int kruscal()':
0_0_20119214_20441.cpp:56:6: error: 'struct edge' has no member named 'select'
    e.select = true;
      ^
0_0_20119214_20441.cpp: In function 'int main()':
0_0_20119214_20441.cpp:91:32: error: no matching function for call to 'edge::edge(int&, int&, ll&, bool)'
    G.push_back(edge(u,v,w,false));
                                ^
0_0_20119214_20441.cpp:91:32: note: candidates are:
0_0_20119214_20441.cpp:15:2: note: edge::edge(int, int, ll)
  edge(int from, int to, ll w):from(from), to(to),w(w){};
  ^
0_0_20119214_20441.cpp:15:2: note:   candidate expects 3 arguments, 4 provided
0_0_20119214_20441.cpp:14:2: note: edge::edge()
  edge(){};
  ^
0_0_20119214_20441.cpp:14:2: note:   candidate expects 0 arguments, 4 provided
0_0_20119214_20441.cpp:11:8: note: constexpr edge::edge(const edge&)
 struct edge{
        ^
0_0_20119214_20441.cpp:11:8: note:   candidate expects 1 argument, 4 provided
0_0_20119214_20441.cpp:11:8: note: constexpr edge::edge(edge&&)
0_0_20119214_20441.cpp:11:8: note:   candidate expects 1 argument, 4 provided


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-09-28 15:22:01, Gzip enabled