happiness.cpp: In function 'void insert(int, ll, ll, ll, ll)':
happiness.cpp:38:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
else if(v <= (s + e >> 1)){
~~^~~
happiness.cpp:42:24: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
insert(T[p].l, s, (s + e >> 1), v, f);
~~^~~
happiness.cpp:50:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
insert(T[p].r, (s + e >> 1) + 1, e, v, f);
~~^~~
happiness.cpp: In function 'void erase(int, ll, ll, ll)':
happiness.cpp:62:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
else if(v <= (s + e >> 1)){
~~^~~
happiness.cpp:65:23: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
erase(T[p].l, s, (s + e >> 1), v);
~~^~~
happiness.cpp:72:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
erase(T[p].r, (s + e >> 1) + 1, e, v);
~~^~~
happiness.cpp: In function 'void add_intv(int, ll, ll, ll, ll, ll)':
happiness.cpp:88:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
add_intv(T[p].l, s, (s + e >> 1), l, r, v);
~~^~~
happiness.cpp:89:22: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
add_intv(T[p].r, (s + e >> 1) + 1, e, l, r, v);
~~^~~
happiness.cpp: In function 'll get_val(int, ll, ll, ll)':
happiness.cpp:97:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
else if(v <= (s + e >> 1)){
~~^~~
happiness.cpp:98:32: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
return get_val(T[p].l, s, (s + e >> 1), v) + T[p].lz;
~~^~~
happiness.cpp:101:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
return get_val(T[p].r, (s + e >> 1) + 1, e, v) + T[p].lz;
~~^~~
grader.cpp: In function 'int main()':
grader.cpp:14:9: warning: unused variable 'd' [-Wunused-variable]
int i, d;
^
grader.cpp:15:12: warning: unused variable 'max_code' [-Wunused-variable]
long long max_code;
^~~~~~~~
grader.cpp:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%lld", &N, &M);
~~~~~^~~~~~~~~~~~~~~~~~
grader.cpp:19:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &coins[i]);
~~~~~^~~~~~~~~~~~~~~~~~~
grader.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &Q);
~~~~~^~~~~~~~~~
grader.cpp:26:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &ck, &c);
~~~~~^~~~~~~~~~~~~~~~~
grader.cpp:28:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &A[j]);
~~~~~^~~~~~~~~~~~~~~