dreaming.cpp: In function 'int dfs(int, int, int)':
dreaming.cpp:31:26: error: invalid conversion from 'int*' to 'int' [-fpermissive]
res=dfs(v[u][i].fi,u,g);
^
dreaming.cpp:24:5: note: initializing argument 3 of 'int dfs(int, int, int)'
int dfs(int u, int pre, int gr){
^~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:59:2: error: 'n' was not declared in this scope
n=N;
^
dreaming.cpp:71:18: error: array must be initialized with a brace-enclosed initializer
int reans[gr]=i;
^
dreaming.cpp:72:13: error: 's' was not declared in this scope
fori(j,1,s){
^
dreaming.cpp:3:36: note: in definition of macro 'fori'
#define fori(a,b,c) for(int a=b; a<c; a++)
^
dreaming.cpp:68:8: warning: unused variable 'k' [-Wunused-variable]
int k = dfs(i,i,gr);
^
dreaming.cpp:97:6: error: 'i' was not declared in this scope
gr=i;
^
dreaming.cpp:101:14: error: 's' was not declared in this scope
fori(l,0,s){
^
dreaming.cpp:3:36: note: in definition of macro 'fori'
#define fori(a,b,c) for(int a=b; a<c; a++)
^
dreaming.cpp:96:7: warning: unused variable 'els' [-Wunused-variable]
int els=el[gr].size();
^~~