0_0_17765558_7705.cpp:34:1: error: 'Node' does not name a type
Node edge[M];
^
0_0_17765558_7705.cpp:42:15: error: expected ')' before 'a'
bool cmp(Node a,Node b)
^
0_0_17765558_7705.cpp:42:22: error: expected ')' before 'b'
bool cmp(Node a,Node b)
^
0_0_17765558_7705.cpp:42:23: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(Node a,Node b)
^
0_0_17765558_7705.cpp:42:23: error: cannot convert 'Node' to 'bool' in initialization
0_0_17765558_7705.cpp:43:1: error: expected ',' or ';' before '{' token
{
^
0_0_17765558_7705.cpp: In function 'LL kruskal()':
0_0_17765558_7705.cpp:57:15: error: 'edge' was not declared in this scope
int px=find(edge[i].x);
^
0_0_17765558_7705.cpp: In function 'int main()':
0_0_17765558_7705.cpp:115:4: error: 'edge' was not declared in this scope
edge[i]=Node(x,y,v);
^
0_0_17765558_7705.cpp:115:22: error: no match for call to '(Node) (int&, int&, int&)'
edge[i]=Node(x,y,v);
^
0_0_17765558_7705.cpp:117:8: error: 'edge' was not declared in this scope
sort(edge,edge+m,cmp);
^
|