collider.cpp: In constructor 'node::node(int, int)':
collider.cpp:8:33: warning: 'node::val' will be initialized after [-Wreorder]
8 | node *ll, *rr; int prior, cnt, val;
| ^~~
collider.cpp:8:21: warning: 'int node::prior' [-Wreorder]
8 | node *ll, *rr; int prior, cnt, val;
| ^~~~~
collider.cpp:9:2: warning: when initialized here [-Wreorder]
9 | node(int val, int prior) : val(val), prior(prior), cnt(1), ll(nullptr), rr(nullptr) {};
| ^~~~
collider.cpp:8:28: warning: 'node::cnt' will be initialized after [-Wreorder]
8 | node *ll, *rr; int prior, cnt, val;
| ^~~
collider.cpp:8:8: warning: 'node* node::ll' [-Wreorder]
8 | node *ll, *rr; int prior, cnt, val;
| ^~
collider.cpp:9:2: warning: when initialized here [-Wreorder]
9 | node(int val, int prior) : val(val), prior(prior), cnt(1), ll(nullptr), rr(nullptr) {};
| ^~~~
collider.cpp: In constructor 'node::node(int, int, node*, node*)':
collider.cpp:8:33: warning: 'node::val' will be initialized after [-Wreorder]
8 | node *ll, *rr; int prior, cnt, val;
| ^~~
collider.cpp:8:21: warning: 'int node::prior' [-Wreorder]
8 | node *ll, *rr; int prior, cnt, val;
| ^~~~~
collider.cpp:10:2: warning: when initialized here [-Wreorder]
10 | node(int val, int prior, node *l, node *r) : val(val), prior(prior), ll(l), rr(r) {};
| ^~~~
collider.cpp:8:21: warning: 'node::prior' will be initialized after [-Wreorder]
8 | node *ll, *rr; int prior, cnt, val;
| ^~~~~
collider.cpp:8:8: warning: 'node* node::ll' [-Wreorder]
8 | node *ll, *rr; int prior, cnt, val;
| ^~
collider.cpp:10:2: warning: when initialized here [-Wreorder]
10 | node(int val, int prior, node *l, node *r) : val(val), prior(prior), ll(l), rr(r) {};
| ^~~~