aqua2.cpp: In function 'int main()':
aqua2.cpp:32:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
32 | pp[i] = rr[i] == n || ll[i] != -1 && yy[ll[i]] > yy[rr[i]] ? ll[i] : rr[i];
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
aqua2.cpp:12:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d%*d%*d", &n), n = n / 2 - 1;
| ~~~~~^~~~~~~~~~~~~~~~
aqua2.cpp:15:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%*d%*d%d%d", &xx[i + 1], &yy[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aqua2.cpp:16:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%*d%*d");
| ~~~~~^~~~~~~~~~
aqua2.cpp:36:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d", &k);
| ~~~~~^~~~~~~~~~
aqua2.cpp:38:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d%*d%*d%*d", &x);
| ~~~~~^~~~~~~~~~~~~~~~~~~