0_0_39573040_19923.cpp: In function 'void add(int, int, int)':
0_0_39573040_19923.cpp:24:9: error: 'ne' was not declared in this scope; did you mean 'n'?
24 | ne[++idx]=h[ui],h[ui]=idx; //2,3开始配对
| ^~
| n
0_0_39573040_19923.cpp:24:19: error: 'h' was not declared in this scope
24 | ne[++idx]=h[ui],h[ui]=idx; //2,3开始配对
| ^
0_0_39573040_19923.cpp:25:9: error: 'v' was not declared in this scope; did you mean 'vi'?
25 | v[idx]=vi,w[idx]=wi;
| ^
| vi
0_0_39573040_19923.cpp:25:19: error: 'w' was not declared in this scope; did you mean 'wi'?
25 | v[idx]=vi,w[idx]=wi;
| ^
| wi
0_0_39573040_19923.cpp: In function 'void prim()':
0_0_39573040_19923.cpp:32:19: error: 'h' was not declared in this scope
32 | for(int i=h[1];i;i=ne[i]){
| ^
0_0_39573040_19923.cpp:32:28: error: 'ne' was not declared in this scope; did you mean 'n'?
32 | for(int i=h[1];i;i=ne[i]){
| ^~
| n
0_0_39573040_19923.cpp:33:20: error: 'w' was not declared in this scope
33 | if(w[i]==-1) continue;
| ^
0_0_39573040_19923.cpp:34:26: error: 'w' was not declared in this scope
34 | pq.push({w[i],i});
| ^
0_0_39573040_19923.cpp:34:24: error: no matching function for call to 'std::priority_queue<node>::push(<brace-enclosed initializer list>)'
34 | pq.push({w[i],i});
| ~~~~~~~^~~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/queue:66,
from 0_0_39573040_19923.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:738:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = node; _Sequence = std::vector<node, std::allocator<node> >; _Compare = std::less<node>; value_type = node]'
738 | push(const value_type& __x)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:738:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::priority_queue<node>::value_type&' {aka 'const node&'}
738 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:746:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = node; _Sequence = std::vector<node, std::allocator<node> >; _Compare = std::less<node>; value_type = node]'
746 | push(value_type&& __x)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:746:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<node>::value_type&&' {aka 'node&&'}
746 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
0_0_39573040_19923.cpp:39:23: error: 'v' was not declared in this scope; did you mean 'vt'?
39 | if(vt[v[tmp.nextid]]) continue;
| ^
| vt
0_0_39573040_19923.cpp:41:20: error: 'v' was not declared in this scope; did you mean 'vt'?
41 | vt[v[tmp.nextid]]=1;
| ^
| vt
0_0_39573040_19923.cpp:42:17: error: 'w' was not declared in this scope
42 | w[tmp.nextid]=-1;
| ^
0_0_39573040_19923.cpp:46:27: error: 'h' was not declared in this scope
46 | for(int i=h[v[tmp.nextid]];i;i=ne[i]){
| ^
0_0_39573040_19923.cpp:46:48: error: 'ne' was not declared in this scope; did you mean 'n'?
46 | for(int i=h[v[tmp.nextid]];i;i=ne[i]){
| ^~
| n
0_0_39573040_19923.cpp:48:32: error: no matching function for call to 'std::priority_queue<node>::push(<brace-enclosed initializer list>)'
48 | pq.push({w[i],i});
| ~~~~~~~^~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:738:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = node; _Sequence = std::vector<node, std::allocator<node> >; _Compare = std::less<node>; value_type = node]'
738 | push(const value_type& __x)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:738:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::priority_queue<node>::value_type&' {aka 'const node&'}
738 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:746:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = node; _Sequence = std::vector<node, std::allocator<node> >; _Compare = std::less<node>; value_type = node]'
746 | push(value_type&& __x)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:746:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<node>::value_type&&' {aka 'node&&'}
746 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
0_0_39573040_19923.cpp: In function 'int main()':
0_0_39573040_19923.cpp:81:24: error: 'h' was not declared in this scope
81 | memset(h,0,sizeof(h));
| ^
|