teams.cpp: In constructor 'PST::Node::Node()':
teams.cpp:8:15: warning: 'PST::Node::rnode' will be initialized after [-Wreorder]
8 | Node* rnode;
| ^~~~~
teams.cpp:7:15: warning: 'PST::Node* PST::Node::lnode' [-Wreorder]
7 | Node* lnode;
| ^~~~~
teams.cpp:10:9: warning: when initialized here [-Wreorder]
10 | Node():rnode(nullptr),lnode(nullptr),val(0),tim(0){}
| ^~~~
teams.cpp: In constructor 'PST::Node::Node(PST::Node*, int)':
teams.cpp:11:28: warning: declaration of 'tim' shadows a member of 'PST::Node' [-Wshadow]
11 | Node(Node* nd, int tim):lnode(nd->lnode),rnode(nd->rnode),val(nd->val),tim(tim){}
| ~~~~^~~
teams.cpp:9:18: note: shadowed declaration is here
9 | int val, tim;
| ^~~
teams.cpp: In constructor 'PST::Node::Node(PST::Node*, int)':
teams.cpp:11:28: warning: declaration of 'tim' shadows a member of 'PST::Node' [-Wshadow]
11 | Node(Node* nd, int tim):lnode(nd->lnode),rnode(nd->rnode),val(nd->val),tim(tim){}
| ~~~~^~~
teams.cpp:9:18: note: shadowed declaration is here
9 | int val, tim;
| ^~~
teams.cpp: In constructor 'PST::Node::Node(PST::Node*, int)':
teams.cpp:11:28: warning: declaration of 'tim' shadows a member of 'PST::Node' [-Wshadow]
11 | Node(Node* nd, int tim):lnode(nd->lnode),rnode(nd->rnode),val(nd->val),tim(tim){}
| ~~~~^~~
teams.cpp:9:18: note: shadowed declaration is here
9 | int val, tim;
| ^~~
teams.cpp: In constructor 'PST::Node::Node(int)':
teams.cpp:12:18: warning: declaration of 'tim' shadows a member of 'PST::Node' [-Wshadow]
12 | Node(int tim):lnode(nullptr),rnode(nullptr),val(0),tim(tim){}
| ~~~~^~~
teams.cpp:9:18: note: shadowed declaration is here
9 | int val, tim;
| ^~~
teams.cpp: In constructor 'PST::Node::Node(int)':
teams.cpp:12:18: warning: declaration of 'tim' shadows a member of 'PST::Node' [-Wshadow]
12 | Node(int tim):lnode(nullptr),rnode(nullptr),val(0),tim(tim){}
| ~~~~^~~
teams.cpp:9:18: note: shadowed declaration is here
9 | int val, tim;
| ^~~
teams.cpp: In constructor 'PST::Node::Node(int)':
teams.cpp:12:18: warning: declaration of 'tim' shadows a member of 'PST::Node' [-Wshadow]
12 | Node(int tim):lnode(nullptr),rnode(nullptr),val(0),tim(tim){}
| ~~~~^~~
teams.cpp:9:18: note: shadowed declaration is here
9 | int val, tim;
| ^~~
teams.cpp: In member function 'void PST::crl()':
teams.cpp:27:58: warning: conversion from 'std::vector<PST::Node*>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
27 | roots.push_back(new Node(roots.back(), roots.size()));
| ~~~~~~~~~~^~