plants.cpp: In function 'int subtask1(int, int)':
plants.cpp:21:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
21 | if (y<= dec[x] or x<= inc[y] and inc[y] < y) return 1;
| ~~~~~~~~~~~^~~~~~~~~~~~~~
plants.cpp:22:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
22 | else if (y <= inc[x] or x<= dec[y] and dec[y] < y) return -1;
| ~~~~~~~~~~~^~~~~~~~~~~~~~
plants.cpp:25:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
25 | if (y<= inc[x] or x<= dec[y] and dec[y] < y) return 1;
| ~~~~~~~~~~~^~~~~~~~~~~~~~
plants.cpp:26:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
26 | else if (y <= dec[x] or x<= inc[y] and inc[y] < y) return -1;
| ~~~~~~~~~~~^~~~~~~~~~~~~~
plants.cpp: In function 'int compare_plants(int, int)':
plants.cpp:31:8: error: 'k' was not declared in this scope
31 | if (k==2) return subtask1(x,y);
| ^