/in/foo.cc: In constructor 'Node::Node(int, int, Node*, Node*)':
/in/foo.cc:9:12: warning: 'Node::rc' will be initialized after [-Wreorder]
Node *lc,*rc;
^~
/in/foo.cc:8:15: warning: 'int Node::rev' [-Wreorder]
int size,val,rev,addv;
^~~
/in/foo.cc:10:2: warning: when initialized here [-Wreorder]
Node(int s,int v,Node *a,Node *b):size(s),val(v),lc(a),rc(b),rev(0),addv(0){}
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:64:28: warning: iteration 400005 invokes undefined behavior [-Waggressive-loop-optimizations]
for(int i=0;i<=N;i++)st[i]=&t[i];
~~~~~^~~~~~
/in/foo.cc:64:15: note: within this loop
for(int i=0;i<=N;i++)st[i]=&t[i];
^