happiness.cpp: In function 'void upd(int&, long long int, long long int, long long int, long long int, long long int)':
happiness.cpp:34:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
34 | if(tl<=l+r>>1||N.lc)
| ~^~
happiness.cpp:35:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
35 | upd(N.lc,v,tl,tr,l,l+r>>1ll);
| ~^~
happiness.cpp:36:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
36 | if(tr>l+r>>1||N.rc)
| ~^~
happiness.cpp:37:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
37 | upd(N.rc,v,tl,tr,l+r+2>>1,r);
| ~~~^~
happiness.cpp: In function 'bool init(int, long long int, long long int*)':
happiness.cpp:53:7: error: request for member 'push_back' in 'T', which is of non-class type 'node [16777216]'
53 | T.push_back(node());
| ^~~~~~~~~
grader.cpp: In function 'int main()':
grader.cpp:16:12: warning: unused variable 'max_code' [-Wunused-variable]
16 | long long max_code;
| ^~~~~~~~