plants.cpp: In function 'void init(int, std::vector<int>)':
plants.cpp:15:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
plants.cpp:16:18: note: in expansion of macro 'rng'
16 | #define rep(i,n) rng((i),0,(n))
| ^~~
plants.cpp:24:2: note: in expansion of macro 'rep'
24 | rep(i,n) r.pb(r[i]);
| ^~~
plants.cpp:15:28: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
15 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
plants.cpp:16:18: note: in expansion of macro 'rng'
16 | #define rep(i,n) rng((i),0,(n))
| ^~~
plants.cpp:28:2: note: in expansion of macro 'rep'
28 | rep(i,n)rep(_,n){
| ^~~
plants.cpp:15:28: warning: unnecessary parentheses in declaration of '_' [-Wparentheses]
15 | #define rng(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
| ^
plants.cpp:16:18: note: in expansion of macro 'rng'
16 | #define rep(i,n) rng((i),0,(n))
| ^~~
plants.cpp:28:10: note: in expansion of macro 'rep'
28 | rep(i,n)rep(_,n){
| ^~~
plants.cpp:40:4: error: 'assert' was not declared in this scope
40 | assert(0);
| ^~~~~~
plants.cpp:8:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
7 | #include<queue>
+++ |+#include <cassert>
8 | using namespace std;