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