0_0_37797362_23684.cpp:55:22: error: 'function' has not been declared
void solve(int n,function<void(int,int,int,int)> add)
^
0_0_37797362_23684.cpp:55:30: error: expected ',' or '...' before '<' token
void solve(int n,function<void(int,int,int,int)> add)
^
0_0_37797362_23684.cpp:128:23: error: 'function' has not been declared
void solve(int &n,function<void(int,int,int,int)> add,bool isLoop[])
^
0_0_37797362_23684.cpp:128:31: error: expected ',' or '...' before '<' token
void solve(int &n,function<void(int,int,int,int)> add,bool isLoop[])
^
0_0_37797362_23684.cpp: In function 'void tarjan::solve(long long int&, int)':
0_0_37797362_23684.cpp:142:32: error: 'isLoop' was not declared in this scope
if(i.w2>0) isLoop[scc[u]]=1;
^
0_0_37797362_23684.cpp: In function 'void solve()':
0_0_37797362_23684.cpp:220:31: error: invalid conversion from 'void (*)(long long int, long long int, long long int, long long int)' to 'int' [-fpermissive]
djstl::solve(n,tarjan::add);
^
0_0_37797362_23684.cpp:55:10: note: initializing argument 2 of 'void djstl::solve(long long int, int)'
void solve(int n,function<void(int,int,int,int)> add)
^
0_0_37797362_23684.cpp:221:43: error: invalid conversion from 'void (*)(long long int, long long int, long long int, long long int)' to 'int' [-fpermissive]
tarjan::solve(n,topo::add,topo::isLoop);
^
0_0_37797362_23684.cpp:221:43: error: too many arguments to function 'void tarjan::solve(long long int&, int)'
0_0_37797362_23684.cpp:128:10: note: declared here
void solve(int &n,function<void(int,int,int,int)> add,bool isLoop[])
^
|