foo.cc: In function ‘int new_node(int)’:
foo.cc:18:84: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
18 | t[u].pri = rand(), t[u].lch = t[u].rch = t[u].flip = t[u].sam = t[u].same_ = 0, t[u].siz = 1,
| ~~~~~~~~~~~^~~
foo.cc: In function ‘void push_down(int)’:
foo.cc:45:105: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
45 | if (t[u].sam) same__(t[u].lch, t[u].same_), same__(t[u].rch, t[u].same_), t[u].sam = t[u].same_ = 0;
| ~~~~~~~~~~~^~~
foo.cc: In function ‘int main()’:
foo.cc:108:43: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
108 | scanf("%lld", &j1), i2 = merge(i2, new_node(j1));
| ~~~^ ~~~
| | |
| | int*
| long long int*
| %d