garden.cpp:30:12: error: macro "rep1" passed 2 arguments, but takes just 1
30 | rep(i,m){
| ^
garden.cpp:5: note: macro "rep1" defined here
5 | #define rep1(a) for(ll _=0;_<(ll)a;++_)
|
garden.cpp:33:12: error: macro "rep1" passed 2 arguments, but takes just 1
33 | rep(i,m){
| ^
garden.cpp:5: note: macro "rep1" defined here
5 | #define rep1(a) for(ll _=0;_<(ll)a;++_)
|
garden.cpp:56:12: error: macro "rep1" passed 2 arguments, but takes just 1
56 | rep(i,n)if(to[i+n]==-1)to[i+n]=to[i];
| ^
garden.cpp:5: note: macro "rep1" defined here
5 | #define rep1(a) for(ll _=0;_<(ll)a;++_)
|
garden.cpp:87:22: error: macro "rep2" passed 3 arguments, but takes just 2
87 | rep(i,1,2*n+1){
| ^
garden.cpp:6: note: macro "rep2" defined here
6 | #define rep2(i,a) for(ll i=0;i<(ll)(a);++i)
|
garden.cpp:97:22: error: macro "rep2" passed 3 arguments, but takes just 2
97 | rep(i,1,2*n+1){
| ^
garden.cpp:6: note: macro "rep2" defined here
6 | #define rep2(i,a) for(ll i=0;i<(ll)(a);++i)
|
garden.cpp:105:12: error: macro "rep1" passed 2 arguments, but takes just 1
105 | rep(i,q){
| ^
garden.cpp:5: note: macro "rep1" defined here
5 | #define rep1(a) for(ll _=0;_<(ll)a;++_)
|
garden.cpp:108:16: error: macro "rep1" passed 2 arguments, but takes just 1
108 | rep(j,n){
| ^
garden.cpp:5: note: macro "rep1" defined here
5 | #define rep1(a) for(ll _=0;_<(ll)a;++_)
|
garden.cpp:26:5: error: ambiguating new declaration of 'int count_routes(int, int, int, int (*)[2], int, int*)'
26 | int count_routes(int n,int m,int p,int r[][2],int q,int query[]){
| ^~~~~~~~~~~~
In file included from garden.cpp:2:
garden.h:1:6: note: old declaration 'void count_routes(int, int, int, int (*)[2], int, int*)'
1 | void count_routes(int N, int M, int P, int R[][2], int Q, int G[]);
| ^~~~~~~~~~~~
garden.cpp: In function 'int count_routes(int, int, int, int (*)[2], int, int*)':
garden.cpp:8:44: error: 'rep1' was not declared in this scope
8 | #define rep(...) overload(__VA_ARGS__,rep2,rep1,rep1)(__VA_ARGS__)
| ^~~~
garden.cpp:4:31: note: in definition of macro 'overload'
4 | #define overload(a,b,c,d,...) d
| ^
garden.cpp:30:5: note: in expansion of macro 'rep'
30 | rep(i,m){
| ^~~
garden.cpp:33:13: error: expected ';' before '{' token
33 | rep(i,m){
| ^
garden.cpp:56:13: error: expected ';' before 'if'
56 | rep(i,n)if(to[i+n]==-1)to[i+n]=to[i];
| ^~
garden.cpp:66:24: error: 'g' was not declared in this scope
66 | for(auto u:g[v])if(dist1[u]==-1){
| ^
garden.cpp:78:24: error: 'g' was not declared in this scope
78 | for(auto u:g[v])if(dist2[u]==-1){
| ^
garden.cpp:8:39: error: 'rep2' was not declared in this scope
8 | #define rep(...) overload(__VA_ARGS__,rep2,rep1,rep1)(__VA_ARGS__)
| ^~~~
garden.cpp:4:31: note: in definition of macro 'overload'
4 | #define overload(a,b,c,d,...) d
| ^
garden.cpp:87:9: note: in expansion of macro 'rep'
87 | rep(i,1,2*n+1){
| ^~~
garden.cpp:86:13: warning: unused variable 'now' [-Wunused-variable]
86 | int now=p;
| ^~~
garden.cpp:8:39: error: 'rep2' was not declared in this scope
8 | #define rep(...) overload(__VA_ARGS__,rep2,rep1,rep1)(__VA_ARGS__)
| ^~~~
garden.cpp:4:31: note: in definition of macro 'overload'
4 | #define overload(a,b,c,d,...) d
| ^
garden.cpp:97:9: note: in expansion of macro 'rep'
97 | rep(i,1,2*n+1){
| ^~~
garden.cpp:96:13: warning: unused variable 'now' [-Wunused-variable]
96 | int now=p+n;
| ^~~
garden.cpp:105:13: error: expected ';' before '{' token
105 | rep(i,q){
| ^
garden.cpp:84:9: warning: unused variable 'cycle1' [-Wunused-variable]
84 | int cycle1=1e9,cycle2=1e9;
| ^~~~~~
garden.cpp:84:20: warning: unused variable 'cycle2' [-Wunused-variable]
84 | int cycle1=1e9,cycle2=1e9;
| ^~~~~~
garden.cpp:114:1: warning: no return statement in function returning non-void [-Wreturn-type]
114 | }
| ^