happiness.cpp: In function 'long long int query(int, long long int, long long int, long long int, long long int)':
happiness.cpp:46:59: error: expected ')' before ';' token
46 | else if(R <= mid) return query(tree[node].l, L, R, l, mid;
| ~ ^
| )
happiness.cpp:48:36: error: too few arguments to function 'long long int query(int, long long int, long long int, long long int, long long int)'
48 | return query(tree[node].l, l, mid) + query(tree[node].r, mid+1, r);
| ^
happiness.cpp:34:11: note: declared here
34 | long long query(int node, long long L, long long R, long long l, long long r){
| ^~~~~
happiness.cpp:48:68: error: too few arguments to function 'long long int query(int, long long int, long long int, long long int, long long int)'
48 | return query(tree[node].l, l, mid) + query(tree[node].r, mid+1, r);
| ^
happiness.cpp:34:11: note: declared here
34 | long long query(int node, long long L, long long R, long long l, long long r){
| ^~~~~
grader.cpp: In function 'int main()':
grader.cpp:16:12: warning: unused variable 'max_code' [-Wunused-variable]
16 | long long max_code;
| ^~~~~~~~